You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs read: "Compute first of group values...Computed first of values within each group." I think the correct description is "For each column, compute the first non-null entry, possibly aggregating values from across multiple rows." We might also want a simple example to explain the behavior.
I was working on this issue, and I have a PR almost ready. However, I see in #8427 that computing the first non null entry is not the desired behaviour of this method.
The solution for #8427 would solve both problems changing the result of first.
However, I will still publish the PR, expecting the best decision to be taken here.
Problem description
The existing doc for
groupby().first()
(https://pandas-docs.github.io/pandas-docs-travis/reference/api/pandas.core.groupby.GroupBy.first.html?highlight=first#pandas.core.groupby.GroupBy.first) does not describe the behavior with respect to missing data. In particular, it does not mention the fact that the behavior is broadcasting columnwise.The docs read: "Compute first of group values...Computed first of values within each group." I think the correct description is "For each column, compute the first non-null entry, possibly aggregating values from across multiple rows." We might also want a simple example to explain the behavior.
Code Sample, a copy-pastable example if possible
The text was updated successfully, but these errors were encountered: