Make Python groupby a little faster
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Guillem Borrell 2022-11-27 18:27:36 +00:00
parent c76150948d
commit c1d46c68a4

View file

@ -4,4 +4,4 @@ import sys
import pandas as pd import pandas as pd
df = pd.read_csv(sys.stdin) df = pd.read_csv(sys.stdin)
print(df.groupby("Dept", as_index=False).Weekly_Sales.mean()) print(df.groupby("Dept", sort=False, as_index=False).Weekly_Sales.mean())