Question: Python What am I doing wrong? Wish someone help me to find the answer. Chicago and New York have the column called User Type. Other
Python
What am I doing wrong?
Wish someone help me to find the answer.
Chicago and New York have the column called User Type. Other cities don't have it.
cities=['Chicago', 'New York'] if city in cities: user_type= df['User Type'].value_counts() print(user_type) else: break
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
