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.

贡献者指南