Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandas - Working with Strings #60

Open
ruchigarg-DS opened this issue Oct 20, 2018 · 2 comments
Open

pandas - Working with Strings #60

ruchigarg-DS opened this issue Oct 20, 2018 · 2 comments

Comments

@ruchigarg-DS
Copy link

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.

@donnemartin
Copy link
Owner

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

@tushargoyal22
Copy link

Hey @donnemartin - I am interested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants