Guest User

Untitled

a guest
Jul 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. bins=[-1,0,5000000]
  2. input_df['discrete_value']=pd.cut(input_df['continuous_value'],bins=bins)
  3. pd.crosstab(input_df.discrete_value, input_df.label)
Add Comment
Please, Sign In to add comment