donnemartin / data-science-ipython-notebooks

Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.
Other
27.55k stars 7.89k forks source link

pandas - Working with Strings #60

Open ruchigarg-DS opened 6 years ago

ruchigarg-DS commented 6 years ago

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 commented 5 years ago

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

tushargoyal22 commented 5 years ago

Hey @donnemartin - I am interested