loc and iloc (3)
This exercise is part of the course
Intermediate Python for Data Science
Exercise instructions
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Import cars data
import pandas as pd
cars = pd.read_csv('cars.csv', index_col = 0)
# Print out drives_right column as Series
# Print out drives_right column as DataFrame
# Print out cars_per_cap and drives_right as DataFrame