Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
How to count the values in Python
elena1234
Apr 25th, 2022
(
edited
)
1,046
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
pandas
as
pd
print
(
df
[
'Hobbyist'
]
.
value_counts
(
)
)
''' Yes 93000
No 200000 '''
# with percentage: print(df['Hobbyist'].value_counts(normalize = True))
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐⭐ Free Crypto Method ⭐ ⭐⭐
JavaScript | 32 sec ago | 0.67 KB
✅✅✅ UNLIMITED MONEY NEW GLITCH ✅✅✅
JavaScript | 2 min ago | 0.67 KB
🎯🎯 +50,000$ in 1 month⭐ 🎯🎯
JavaScript | 5 min ago | 0.67 KB
💎💎 INSTANT MONEY METHOD - FRESH RELEASE
JavaScript | 6 min ago | 0.67 KB
python_decorator
Python | 6 min ago | 1.32 KB
⭐⭐ FREE BTC GUIDE ✅ Working ⭐⭐
JavaScript | 10 min ago | 0.67 KB
⚡ Earn 8,000$ Monthly Leaked Guide 🎯⭐
JavaScript | 10 min ago | 0.67 KB
🚨 FREE 2,000$ FROM SWAPZONE
JavaScript | 14 min ago | 0.67 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!