This repository was archived by the owner on Feb 8, 2023. It is now read-only.
forked from mars-project/mars
-
Notifications
You must be signed in to change notification settings - Fork 4
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
[BUG] Error when aggregate single column dataframes #133
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
To Reproduce
To help us reproducing this bug, please provide information below:
- Your Python version
3.10 - The version of Mars you use
0.10.0 - Versions of crucial packages, such as numpy, scipy and pandas
- 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
- 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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working