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.
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.
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.