Pandas custom aggregate function with condition on group, is it possible?

Published: 16 January 2023
on channel: The Python Oracle
65
0

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

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Quirky Dreamscape Looping

--

Chapters
00:00 Question
03:34 Accepted answer (Score 1)
05:09 Answer 2 (Score 2)
06:17 Answer 3 (Score 1)
08:20 Thank you

--

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

Answer 2 links:
[datar]: https://github.com/pwwang/datar
[datar]: https://github.com/pwwang/datar

--

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

--

Tags
#python #pandas #dataframe #pandasgroupby

#avk47