Skip to content

Instantly share code, notes, and snippets.

@gbushnell

gbushnell/RFM_data_load.py Secret

Created Oct 15, 2020
Embed
What would you like to do?
Load RFM data
# Load our data and ensure dates are parese correctly
data = pd.read_csv('sql_anon_invoices.csv')
data['invoice_date'] = data['invoice_date'].astype('datetime64[ns]')
data.head()
print("Rows: {}".format(len(data)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment