data-science-ipython-notebooks icon indicating copy to clipboard operation
data-science-ipython-notebooks copied to clipboard

pandas - Working with Strings

Open ruchigarg-DS opened this issue 7 years ago • 2 comments
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.

ruchigarg-DS avatar Oct 20 '18 18:10 ruchigarg-DS

Hi @ruchigarg-DS, are you interested in submitting a PR?

donnemartin avatar Feb 12 '19 11:02 donnemartin

Hey @donnemartin - I am interested

tushargoyal22 avatar Oct 05 '19 19:10 tushargoyal22