I'm declaring multiple empty dataframes as follows:
variables = pd.DataFrame(index=range(10),
columns=['P1', 'P2', 'P3'],
dtype='float64')
Q1 = pd.DataFrame(index=range(10),
columns=['P1H1', 'P1H2'],
dtype='float64')
I can use fillna as follows:
variables = variables.fillna(0)
Q1 = Q1.fillna(0)
What is a more pythonic way of filling multiple dataframes simultaneously ?
Reason: Here I have given only two dataframes, however, the real problem has many more dataframes, which I have to update periodically.