replace all values with nan except first row in column pandas code example
Example: replace all nan values in dataframe
# Replacing all nan values with 0 in Dataframe
df = df.fillna(0)
# Replacing all nan values with 0 in Dataframe
df = df.fillna(0)