Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created September 29, 2020 09:33
Embed
What would you like to do?
nb_to_delete = target_count[0] - target_count[1]
data = data.sample(frac=1, random_state=42).sort_values(by='auth')
data = data[nb_to_delete:]
print(data['auth'].value_counts())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment