Skip to content

Instantly share code, notes, and snippets.

@gbushnell
Created October 15, 2020 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbushnell/8ff3b011361a462a97000cd7c5320590 to your computer and use it in GitHub Desktop.
Save gbushnell/8ff3b011361a462a97000cd7c5320590 to your computer and use it in GitHub Desktop.
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