# Import cars data import pandas as pd cars = pd.read_csv('cars.csv', index_col = 0) # Create car_maniac: observations that have a cars_per_cap over 500 cpc = cars['cars_per_cap'] many_cars = cpc > 500 car_maniac = cars[many_cars] # Print car_maniac print(car_maniac)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter