Make Python groupby a little faster
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
c76150948d
commit
c1d46c68a4
|
@ -4,4 +4,4 @@ import sys
|
|||
import pandas as pd
|
||||
|
||||
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())
|
Loading…
Reference in a new issue