Skip to content

Instantly share code, notes, and snippets.

@akelleh
Created May 5, 2019 00:47
Show Gist options
  • Save akelleh/875e402ff09de650ce7d06aefb32a78a to your computer and use it in GitHub Desktop.
Save akelleh/875e402ff09de650ce7d06aefb32a78a to your computer and use it in GitHub Desktop.
causal_df = df.causal.do('title_length',
method='weighting',
variable_types={'title_length': 'd',
'click_through_rate': 'c',
'author': 'd'},
outcome='click_through_rate',
common_causes=['author'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment