Created
December 6, 2020 19:48
-
-
Save Kamaldeep0077/2867e96a626246cd47cb335eb2645929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data['pickup_year'] = data['pickup_datetime'].dt.year | |
data['pickup_dayofyear'] = data['pickup_datetime'].dt.day | |
data['pickup_monthofyear'] = data['pickup_datetime'].dt.month | |
data['pickup_hourofday'] = data['pickup_datetime'].dt.hour | |
data['pickup_dayofweek'] = data['pickup_datetime'].dt.dayofweek | |
data['pickup_weekofyear'] = data['pickup_datetime'].dt.weekofyear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment