issues
search
jvns
/
pandas-cookbook
Recipes for using Python's pandas library
6.68k
stars
2.32k
forks
source link
simplified code - removed .loc and aggregate()
#79
Closed
caringrad
closed
1 month ago
caringrad
commented
2 years ago
Made following changes to simplify code for tutorial:
before: berri_bikes.loc[:,'weekday'] --> after: berri_bikes['weekday']
before: berri_bikes.groupby('weekday').aggregate(sum) --> after: berri_bikes.groupby('weekday').sum()
jvns
commented
1 month ago
Thanks!
Made following changes to simplify code for tutorial: