Time series data groupinf




I have a time series data from 1st Jan 2016 to 30th June 2016 in the datetime format(Yy-dd-mm)
I grouped all the trips on a daily basis using train[‘pickup_datetime’].dt.dayofyear, but some of the entries are showing negative entries.
One eg is, 2016-06-12 as -94 instead of a day of a year.

I used the same formula on a weather dataset and it is showing me proper day of a year.

What’s the problem in the other dataset?


Hey @ASHISH_17,

could you please post the screenshots of both the data sets and your code here?

Sanad :smiley: