I have many dataframes and I store them in a list.
Now I'd like to do simple fillna(0)
to each dataframe, so I do the following, but it didn't work:
df_list = [df_1,df_2,df_3,df_4]
for df in df_list:
df = df.fillna(0)
df.index = df.index.strftime('%Y-%m-%d')
I think df on the left hand side inside the loop is not the same as original dataframe, how to do it?