donnemartin/data-science-ipython-notebooks

pandas - Working with Strings

Open

#60 ouverte le 20 oct. 2018

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Python (7 706 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (26 379 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur