Jul-30-2024, 01:47 AM
Hi everyone,
I am looking at getting quarterly data to monthly. For the amounts I want to get the average between the two amounts. Below is an example of what I mean:
Have:
Thanks
I am looking at getting quarterly data to monthly. For the amounts I want to get the average between the two amounts. Below is an example of what I mean:
Have:
d = {'Date': [31/12/2010,31/03/2011,30/06/2011], 'Amount': [1000,1300,1550]}
df = pd.DataFrame(data=d)
dfWant:d = {'Date': [31/12/2010,
31/01/2011,
28/02/2011,
31/03/2011,
30/04/2011,
31/05/2011,
30/06/2011,
], 'Amount': [1000,
1100,
1200,
1300,
1383,
1467,
1550,
]}
df = pd.DataFrame(data=d)
dfI appreciate any help.Thanks
