# Convert InvoiceDate from object (string) to datetime df[‘InvoiceDate’] = pd.to_datetime(df[‘InvoiceDate’])