pandas dataframe change column type to object to datetime code example
Example 1: convert column in pandas to datetime
df['col'] = pd.to_datetime(df['col'])
Example 2: dataframe change column type to datetime
df['Date']= pd.to_datetime(df['Date'])