Answer

Question

1. Data Loading

Once the dataset is loaded, what's the shape of the data?

Untitled

266,855 rows x 20 columns

2. Data Transformation

Upon filtering the dataset where the passenger count is greater than 0 and the trip distance is greater than zero, how many rows are left?

Untitled

139,370 rows

3. Data Transformation

Which of the following creates a new column lpep_pickup_date by converting lpep_pickup_datetime to a date?

data['lpep_pickup_date'] = data['lpep_pickup_datetime'].dt.date

4. Data Transformation