changin formate of column to datetime in padnas using astype code example Example: convert column in pandas to datetime df['col'] = pd.to_datetime(df['col'])