Created
November 6, 2020 21:58
-
-
Save brinnaebent/9d65f89182c039cddff913bbe70f62fb to your computer and use it in GitHub Desktop.
This file contains hidden or 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['date posted'] = pd.to_datetime(data['date posted']) | |
data['year'] = pd.DatetimeIndex(data['date posted']).year |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment