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