donnemartin/data-science-ipython-notebooks

pandas - Working with Strings

Open

#60 建立於 2018年10月20日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Python (26,379 star) (7,706 fork)batch import
bughelp wanted

描述

In the code cell 3: data = ['peter', 'Paul', None, 'MARY', 'gUIDO'] data.map(lambda s: s.capitalize()) was changed to [s.capitalize() for s in data if s!= None ] and now the code woks fine.

貢獻者指南