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 www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #convert #number #column #datetime #pandas
ADD COMMENT
Topic
Name
1+4 =