new file: aggregates/a-b project/code.py new file: aggregates/codecademy_code/script.py new file: aggregates/codecademy_code/test1.py modified: aggregates/orders.csv new file: aggregates/python-aggregatesI.py new file: aggregates/python-aggregatesII.py new file: aggregates/python-aggregatesIII.py new file: aggregates/python-aggregatesIV.py new file: aggregates/python-aggregatesV.py Added aggregate files
7 lines
179 B
Python
7 lines
179 B
Python
import codecademylib
|
|
import numpy as np
|
|
import pandas as pd
|
|
|
|
orders = pd.read_csv('orders.csv')
|
|
|
|
shoe_counts = orders.groupby(['shoe_type', 'shoe_color']).id.count().reset_index() |