get first and last values in a groupby
Why doesn't first and last in a groupby give me first and last
How to get last group in Pandas' groupBy? How to use groupby in lambda and call first and last value of same id? pandas groupby last n Convert a GroupBy object (groupby().size) into a dictionary What's the difference between groupby.first() and groupby.head(1)? py df groupby and get values to a string Pandas groupby method Groupby in python Python DataFrame Groupby Working with the output of groupby and groupby.size() How to use Python's groupby Groupby to csv file difference between dict(groupby) and groupby Python groupby issue Pandas use groupby to apply a different function for each value of the groupby variable How to groupby and collpase with pandas? Groupby and any() | all() Groupby in a list for python groupby of a groupby to select values in pandas Using groupby on a function Python Groupby part of a string Pandas groupby - set of different values Groupby for nestedlists Loop and groupby for column values pandas groupby + list How to access python groupby objects values Pandas: groupby How to use python groupby() Pandas Groupby: How to get the first string