The Python Oracle

Multiple aggregations of the same column using pandas GroupBy.agg()

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC E Schuberts Piano Sonata D 784 in A

--

Chapters
00:00 Question
01:19 Accepted answer (Score 283)
02:07 Answer 2 (Score 231)
06:03 Answer 3 (Score 7)
06:19 Answer 4 (Score 1)
07:49 Thank you

--

Full question
https://stackoverflow.com/questions/1258...

Answer 1 links:
[Named Aggregation]: https://pandas-docs.github.io/pandas-doc...
[0.25 docs section on Enhancements]: https://pandas-docs.github.io/pandas-doc...
[GH18366]: https://github.com/pandas-dev/pandas/iss...
[GH26512]: https://github.com/pandas-dev/pandas/iss...
[Using a dictionary for renaming columns is deprecated in v0.20.]: http://pandas.pydata.org/pandas-docs/ver...

Answer 3 links:
[image]: https://i.stack.imgur.com/Nx5gv.png
[stated in the docs]: https://pandas.pydata.org/docs/user_guid...
[image]: https://i.stack.imgur.com/1OKwX.png

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #pandas #dataframe #aggregate #pandasgroupby

#avk47