DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
replace nat with date pandas
In [138]: end = pd.to_datetime('2017-12-15') In [139]: df['Date'] = df['Date'].fillna(end)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#replace
#nat
#date
#pandas
ADD COMMENT
Topic
COMMENT
Name
5+8 =
Submit