Question: Q1. Lets consider your data is like the below cell: Q1-1 : Write a program that create a dataframe from the data. Q1-2: Select people
Q1. Lets consider your data is like the below cell:
Q1-1: Write a program that create a dataframe from the data.
Q1-2: Select people that are psychologist or teacher and their number of cars is greater than their family size.
Q1-3: Select people who have at most 2 family members and at least 1 car.
Q1-4: Write a code that get number of unique jobs in this dataset.
data = {"name": ["Joseph", "Jacob", "Sam", "Jesee", "Ryan", "Lisa", "Lee"],
"job": ["teacher", "psychologist", "data scientist", "software developer", "psychologist", "psychologist", "teacher"],
"family_size": [3, 2, 1, 4, 2, 3, 2],
"num_cars": [3, 1, 1, 2, 2, 4, 1]}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
