I'm sure what I'm asking is simple question but have yet to figure it out. I have a panda df and I want to run this basic query on it
Select a,b,c
FROM TABLE
WHERE (TABLE.time >= x ) && (TABLE.time <= y)
GROUP BY c
so if I have a table
A B time
a b time1
c d time2
e f time3
I would want only to return the a,b,c where the time is greater or less than the ones in the query. Also would this query on a Dataframe give me another df if I assign the query to a variable say something like
df2 = df.query()
I hope this makes sense
df.queryin case you didn't know pandas.pydata.org/pandas-docs/version/0.22.0/generated/…