Re: Select columns based on dates - Pandas

2021-09-04 Thread Richard Medina
19-01-01 30 > 3 us 2019-02-01 12 > 4 uk 2019-02-01 22 > 5 it 2019-02-01 32 > > With that you could create three dataframes, one per month. > > Thanks, > Martin. > On Thu, Sep 02, 2021 at 12:28:31PM -0700, Richard Medina wrote: > >Hello, forum, > >I have

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

creating vector from df.intertuples

2017-04-17 Thread Richard Medina
I want to create a vector from a dataframe in a loop. Then I want to create a new column from this vector. for row in df.itertuples(): mm = str(row.t) #selecting "t" column nn = get_sec(mm) #this function converts time to seconds df["s"] = nn #I want to add my new

Eclipse, C, and Python

2012-03-20 Thread Richard Medina Calderon
Hello Forum. I have installed Python comnpiler in Eclipse Classic for Windows. After a while I have installed the C compiler. However, somehow now when I try to run my code in Python it shows me for default Ant Run --Ant Build I switched my workspace but still. Do you know how to solve this?..