Skip to content

Instantly share code, notes, and snippets.

@lucdangelis
Last active May 31, 2019 13:34
Show Gist options
  • Save lucdangelis/500787b643ed21679d7e91db4a36546f to your computer and use it in GitHub Desktop.
Save lucdangelis/500787b643ed21679d7e91db4a36546f to your computer and use it in GitHub Desktop.
#Plot historical probability of being alive
customer_id = ..
days_since_birth = ....
sp_trans = transaction_data.loc[transaction_data['customer_id'] == customer_id]
plot_history_alive(bgf, days_since_birth, sp_trans, 'date')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment