Use DataFrame.fillna or Series.fillna which will help in replacing the Python object None, not the string 'None'.
import pandas as pd
For dataframe:
df.fillna(value=pd.np.nan, inplace=True)
For column or series:
df.mycol.fillna(value=pd.np.nan, inplace=True)
If you want to know more about Machine Learning then watch this video:
If you wish to learn more about Data Science, visit Data science tutorial and Data Scientist by Intellipaat.