how to change data type in pandas dataframe to datetime code example Example: dataframe change column type to datetime df['Date']= pd.to_datetime(df['Date'])