You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 20:54:53 UTC

[GitHub] [beam] damccorm opened a new issue, #21014: DataFrame API: groupby(dropna=False) still drops NAs when grouping on multiple columns or indexes

damccorm opened a new issue, #21014:
URL: https://github.com/apache/beam/issues/21014

   ```
   
   df.groupby(['foo', 'bar'], dropna=False).sum()
   
   ```
   
   
   This will still drop NAs in the output.
   
   This is due to pandas bug [36470](https://github.com/pandas-dev/pandas/issues/36470) "BUG: groupby(..., dropna=False) excludes NA values when grouping on MultiIndex levels".
   
   We implement groupby by moving all grouped data into the index and requiring Index() partitioning, so we will always run into this issue, even when the user is grouping on columns, not indexes.
   
   Imported from Jira [BEAM-12495](https://issues.apache.org/jira/browse/BEAM-12495). Original Jira may contain additional context.
   Reported by: bhulette.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org