Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

replace nat with date pandas

In [138]: end = pd.to_datetime('2017-12-15')

In [139]: df['Date'] = df['Date'].fillna(end)
Comment

PREVIOUS NEXT
Code Example
Python :: matplotlib draw two histograms on same image 
Python :: how to import model_to_dict 
Python :: python remove form list 
Python :: python filter list of strings 
Python :: python match phone number 
Python :: python check folder exists 
Python :: python list except last element 
Python :: with urllib.request.urlopen("https:// 
Python :: sort list of numbers python 
Python :: time now random seed python 
Python :: replace values of pandas column 
Python :: python read from stdin 
Python :: pandas find location of values greater than 
Python :: reset django database 
Python :: pdf to text python 
Python :: list to sentence python 
Python :: pandas group by multiple columns and count 
Python :: difference between compiler and interpreter 
Python :: python check if string has space 
Python :: python fill string with 0 left 
Python :: small factorial codechef solution 
Python :: unix command in python script 
Python :: read file from s3 python 
Python :: python execute shell command and get output 
Python :: check strings last letter python 
Python :: how to create empty series in pandas 
Python :: python gui using css 
Python :: print column in 2d numpy array 
Python :: python change terminal name 
Python :: python palindrome 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =