DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
extract only year from date python
df['year'] = pd.DatetimeIndex(df['date']).year
Source by www.codegrepper.com #
PREVIOUS
NEXT
Tagged:
#extract
#year
#date
#python
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit