Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

date parser python pandas

mydateparser = lambda x: pd.datetime.strptime(x, "%Y %m %d %H:%M:%S")
df = pd.read_csv("file.csv", sep='	', names=['date_column', 'other_column'], parse_dates=['date_column'], date_parser=mydateparser)
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #date #parser #python #pandas
ADD COMMENT
Topic
Name
9+7 =