Pandas > Drop rows with empty values

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 3)), columns=['C1','C2','C3'])
dataframe.loc[3] = numpy.nan
print ("dataframe")
print (dataframe)
# option with inplace will change the same dataframe
dataframe2 = dataframe.dropna(axis=0)
print ("dataframe drop empty row")
print (dataframe2)
dataframe
     C1    C2    C3
0  81.0  65.0  92.0
1  75.0  15.0  46.0
2  44.0  96.0   7.0
3   NaN   NaN   NaN
4  34.0  95.0  76.0
dataframe drop empty row
     C1    C2    C3
0  81.0  65.0  92.0
1  75.0  15.0  46.0
2  44.0  96.0   7.0
4  34.0  95.0  76.0