Aan de slagGa gratis aan de slag

Your first inner join

You have been tasked with figuring out what the most popular types of fuel used in Chicago taxis are. To complete the analysis, you need to merge the taxi_owners and taxi_veh tables together on the vid column. You can then use the merged table along with the .value_counts() method to find the most common fuel_type.

Since you'll be working with pandas throughout the course, the package will be preloaded for you as pd in each exercise in this course. Also the taxi_owners and taxi_veh DataFrames are loaded for you.

Deze oefening maakt deel uit van de cursus

Joining Data with pandas

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Merge the taxi_owners and taxi_veh tables
taxi_own_veh = taxi_owners.____

# Print the column names of the taxi_own_veh
print(taxi_own_veh.columns)
Code bewerken en uitvoeren