codecademy-examples/aggregates/python.py
Jonathan Ervine ea143ef778 new file: aggregates/orders.csv
new file:   aggregates/python.py
New exercise ... using pandas for aggregates
2020-03-17 16:01:42 +08:00

9 lines
158 B
Python

import pandas as pd
orders = pd.read_csv('orders.csv')
print(orders.head(10))
most_expensive = orders.price.max()
num_colors = orders.shoe_color.nunique()