Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

[BUG] Error when aggregate single column dataframes #133

Open
UranusSeven opened this issue Jan 28, 2023 · 0 comments
Open

[BUG] Error when aggregate single column dataframes #133

UranusSeven opened this issue Jan 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@UranusSeven
Copy link

UranusSeven commented Jan 28, 2023

To Reproduce

To help us reproducing this bug, please provide information below:

  1. Your Python version
    3.10
  2. The version of Mars you use
    0.10.0
  3. Versions of crucial packages, such as numpy, scipy and pandas
  4. Full stack of the error.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/mars/services/subtask/worker/processor.py", line 201, in _execute_operand
    return execute(ctx, op)
  File "/usr/local/lib/python3.8/dist-packages/mars/core/operand/core.py", line 491, in execute
    result = executor(results, op)
  File "/usr/local/lib/python3.8/dist-packages/mars/core/custom_log.py", line 94, in wrap
    return func(cls, ctx, op)
  File "/usr/local/lib/python3.8/dist-packages/mars/utils.py", line 1209, in wrapped
    result = func(cls, ctx, op)
  File "/usr/local/lib/python3.8/dist-packages/mars/dataframe/groupby/aggregation.py", line 1305, in execute
    cls._execute_agg(ctx, op)
  File "/usr/local/lib/python3.8/dist-packages/mars/dataframe/groupby/aggregation.py", line 1232, in _execute_agg
    in_data_dict[output_key] = cls._do_predefined_agg(
  File "/usr/local/lib/python3.8/dist-packages/mars/dataframe/groupby/aggregation.py", line 1057, in _do_predefined_agg
    result = input_obj.agg([agg_func])
  File "/usr/local/lib/python3.8/dist-packages/pandas/core/groupby/generic.py", line 979, in aggregate
    result = op.agg()
  File "/usr/local/lib/python3.8/dist-packages/pandas/core/apply.py", line 164, in agg
    return self.agg_list_like()
  File "/usr/local/lib/python3.8/dist-packages/pandas/core/apply.py", line 379, in agg_list_like
    raise ValueError("no results")
ValueError: no results
  1. Minimized code to reproduce the error.
import mars.dataframe as md
df = md.DataFrame({"foo": (1, 2, 3)})
df.groupby("foo", as_index=False).count().execute()

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

@XprobeBot XprobeBot added the bug Something isn't working label Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants