My problem is similar to the question asked How to aggregate and plot data from pandas dataframe?
Except that my data is less than perfect.
I have a DataFrame with the data read in from a CSV file with the following format:
total_value;payout_date
25;2021-02-24-09-AM
10;2021-02-24-09-PM
16;2021-02-24-10-AM
2;2021-02-24-10-PM
12;2021-02-24-11-AM
6;2021-02-24-11-PM
27;2021-02-24-12-PM
3;2021-02-25-01-AM
20;2021-02-25-01-PM
16;2021-02-26-10-AM
1;2021-02-26-10-PM
17;2021-02-26-11-AM
2;2021-02-26-11-PM
4;2021-02-26-12-AM
17;2021-02-26-12-PM
4;2021-02-27-01-AM
5;2021-02-27-01-PM
6;2021-02-27-02-AM
The datetime format is yyyy-mm-dd-h12-am. How can I trim the date to just yyyy-mm-dd before I can aggregate the totals. For example,
4;2021-02-27-01-AM
5;2021-02-27-01-PM
6;2021-02-27-02-AM
becomes
4;2021-02-27
5;2021-02-27
6;2021-02-27
and the expected result is
15;2021-02-27
Thanks in advance for your help!
