Lets say we have the following:
Jan_22 ={'A':221, 'B':119, 'C':455,'E':677}
Feb_22 ={'A':342, 'B':1223,'C':133,'D':3662,'G':321}
Mar_22 ={'A':252, 'C':53}
list = [Jan_22,Feb_22,Mar_22]
df = pd.DataFrame(list)
df
A B C D E G
0 221 119.0 455 NaN 677.0 NaN
1 342 1223.0 133 3662.0 NaN 321.0
2 252 NaN 53 NaN NaN NaN
This dataframe is made from a list of three dictionaries, each named after a month (Jan_22, etc.). The columns are not named by the month (just 0 is Jan,1 is Feb ,2 is Mar). What I want to do is divide the numbers in each column of the dataframe by its respective days in the month. How do I do this?