Advertisement
elena1234

How to count the values in Python

Apr 25th, 2022 (edited)
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. print(df['Hobbyist'].value_counts())
  4.  
  5. ''' Yes 93000
  6.    No  200000 '''
  7.  
  8. # with percentage: print(df['Hobbyist'].value_counts(normalize = True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement