Relative Content

Tag Archive for pythonpandasdataframedatetime

Date type conversion and conditions

I’m trying to compare the dates in pandas.
I want the date entry in the dataframe to lie in the window of 10 days of the date specified in the index.

How to create a new dataframe based on date in pandas

I created a dataframe from CSV’s where I had the date in milis. I managed to turn this into a date, exactly what I want. However, when I try to create a new dataframe with a seperate date, this does not work. I use the standard .loc for pandas as was recommended on this site.