I have a Pandas DataFrame that was generated based on a dictionary (that had some dictionaries inside it).
When I print the dictionary it gives me something like this illustration below:
I need to, somehow, to transform those dictionaries into columns that are going to be children of the month (Jan, Feb, etc.) column. Like this:
**UPDATE - Adding the dictionary **
data={'2007': {'Jan': {'working_days': 23,'weekend': 4,'holydays': 4,'days': 31},'Feb': {'working_days': 20,'weekend': 6,'holydays': 2,'days': 28},'Mar': {'working_days': 20,'weekend': 6,'holydays': 2,'days': 28}},'2008': {'Jan': {'working_days': 23,'weekend': 4,'holydays': 4,'days': 31},'Feb': {'working_days': 20,'weekend': 6,'holydays': 2,'days': 28},'Mar': {'working_days': 20,'weekend': 6,'holydays': 2,'days': 28}},'2009': {'Jan': {'working_days': 23,'weekend': 4,'holydays': 4,'days': 31},'Feb': {'working_days': 20,'weekend': 6,'holydays': 2,'days': 28},'Mar': {'working_days': 20,'weekend': 6,'holydays': 2,'days': 28}}}
How can I do it?
Thanks in advance!