7 lines
145 B
Python
7 lines
145 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys
|
||
|
import pandas as pd
|
||
|
|
||
|
df = pd.read_csv(sys.stdin)
|
||
|
print(df.groupby("Dept", as_index=False).Weekly_Sales.mean())
|