Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12444

GroupBy.apply on a series grouped by a callable fails

    XMLWordPrintableJSON

    Details

      Description

      df.foo.groupby(lambda x: x % 3).apply(...)
      

      This example fails because it tries to call set_index on a Series. It fails at construction time, not at execution time.

      To workaround users can call groupby on a single column dataframe instead, e.g. df[['foo']].groupby...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhulette Brian Hulette
                Reporter:
                bhulette Brian Hulette
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h