donnemartin / donnemartin/data-science-ipython-notebooks

capitalize error

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.3k
Forks
8k
PR merge metrics
No merged PRs in 30d

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

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.