microsoft / Data-Science-For-Beginners

10 Weeks, 20 Lessons, Data Science for All!
https://microsoft.github.io/Data-Science-For-Beginners/
MIT License
27.86k stars 5.76k forks source link

Expression error in 02-Working-With-Data/07-python/notebook.ipynb #545

Open aniveshkanodia opened 5 months ago

aniveshkanodia commented 5 months ago

Describe the bug Code to demonstrate the concept of grouping in pandas errors out because it tries to perform .mean() to text column B

I believe it should be - df.groupby(by='LenB')[['A','DivA']].mean()