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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!