Search
 
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
Name
5+8 =