[
https://issues.apache.org/jira/browse/BEAM-14107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17549913#comment-17549913
]
Danny McCormick commented on BEAM-14107:
----------------------------------------
This issue has been migrated to https://github.com/apache/beam/issues/21485
> DataFrame API: Support deferred GroupBy.__len__ and GroupBy.ngroups
> -------------------------------------------------------------------
>
> Key: BEAM-14107
> URL: https://issues.apache.org/jira/browse/BEAM-14107
> Project: Beam
> Issue Type: Improvement
> Components: dsl-dataframe, sdk-py-core
> Reporter: Andy Ye
> Priority: P3
> Labels: dataframe-api
>
> We should be able to build a deferred operation that calculates the number of
> groups for GroupBy.ngroups.
> len(groupby) might be possible ... but I think python will complain if we
> return something other than an integer (like a deferred operation). If thats
> the case we should raise an error that directs users to alternatives (e.g.
> ngroups).
--
This message was sent by Atlassian Jira
(v8.20.7#820007)