donnemartin/data-science-ipython-notebooks

pandas - Working with Strings

Open

#60 opened on Oct 20, 2018

 (3 comments) (0 reactions) (0 assignees)Python (8,029 forks)batch import
bughelp wanted

Repository metrics

Stars
 (29,313 stars)
PR merge metrics
 (PR metrics pending)

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.

Contributor guide