import pandas as pd
d = {
'AAPL' : pd.Series([10, 20, 30], index=['P1', 'P2', 'P3']),
'GOOGL' : pd.Series([44, 50, 75, 89], index=['P1', 'P2', 'P3', 'P4'])
}
df = pd.DataFrame(d)
Type your code below
print (df)
df_mod = df.fillna(value='10')
print (df_mod)