Pandas > Fill missing/empty values

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 3)), columns=['C1','C2','C3'])
dataframe['C2'] = numpy.nan
dataframe.loc[3] = numpy.nan
print ("dataframe")
print (dataframe)
# option with inplace will change the same dataframe
dataframe2 = dataframe.fillna(77)
print ("dataframe with filled empty values")
print (dataframe2)
dataframe
     C1  C2    C3
0  11.0 NaN  41.0
1  14.0 NaN   9.0
2  79.0 NaN   5.0
3   NaN NaN   NaN
4   5.0 NaN  70.0
dataframe with filled empty values
     C1    C2    C3
0  11.0  77.0  41.0
1  14.0  77.0   9.0
2  79.0  77.0   5.0
3  77.0  77.0  77.0
4   5.0  77.0  70.0