donnemartin/data-science-ipython-notebooks

pandas - Working with Strings

Ouverte

#60 ouverte le 20 oct. 2018

 (3 commentaires) (0 réaction) (0 personne assignée)Python (8 029 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (29 313 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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