donnemartin/data-science-ipython-notebooks

pandas - Working with Strings

開放

#60 建立於 2018年10月20日

 (3 則留言) (0 個反應) (0 位負責人)Python (8,029 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (29,313 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南