Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert a number column into datetime pandas

# convert the 'Date' column to datetime format
df['Date']= pd.to_datetime(df['Date'])
 
# Check the format of 'Date' column
df.info()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #number #column #datetime #pandas
ADD COMMENT
Topic
Name
3+9 =