Re: Select columns based on dates - Pandas

2021-09-04 Thread Richard Medina
On Friday, September 3, 2021 at 11:57:12 AM UTC-5, Martin Di Paola wrote: > You may want to reshape the dataset to a tidy format: Pandas works > better with that format. > > Let's assume the following dataset (this is what I understood from your > message): > > In [34]: df = pd.DataFrame({ >

Re: Select columns based on dates - Pandas

2021-09-03 Thread Martin Di Paola
You may want to reshape the dataset to a tidy format: Pandas works better with that format. Let's assume the following dataset (this is what I understood from your message): In [34]: df = pd.DataFrame({ ...: 'Country': ['us', 'uk', 'it'], ...: '01/01/2019': [10, 20, 30], ...: '02/

Select columns based on dates - Pandas

2021-09-02 Thread Richard Medina
Hello, forum, I have a data frame with covid-19 cases per month from 2019 - 2021 like a header like this: Country, 01/01/2019, 2/01/2019, 01/02/2019, 3/01/2019, ... 01/01/2021, 2/01/2021, 01/02/2021, 3/01/2021 I want to filter my data frame for columns of a specific month range of march to Sep