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/