donnemartin/data-science-ipython-notebooks

pandas - Working with Strings

Aperta

#60 aperta il 20 ott 2018

 (3 commenti) (0 reazioni) (0 assegnatari)Python (8029 fork)batch import
bughelp wanted

Metriche repository

Star
 (29.313 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor