data-science-ipython-notebooks
data-science-ipython-notebooks copied to clipboard
pandas - Working with Strings
trafficstars
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.
Hi @ruchigarg-DS, are you interested in submitting a PR?
Hey @donnemartin - I am interested