We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 897c720 commit d834295Copy full SHA for d834295
pandas/core/groupby/groupby.py
@@ -2918,7 +2918,7 @@ def _get_cythonized_result(
2918
if min_count is not None:
2919
base_func = partial(base_func, min_count=min_count)
2920
2921
- real_2d = how in ["group_any_all"]
+ real_2d = how in ["group_any_all", "group_var"]
2922
2923
def blk_func(values: ArrayLike) -> ArrayLike:
2924
values = values.T
@@ -2999,7 +2999,6 @@ def blk_func(values: ArrayLike) -> ArrayLike:
2999
obj = self._obj_with_exclusions
3000
if obj.ndim == 2 and self.axis == 0 and needs_2d and real_2d:
3001
# Operate block-wise instead of column-by-column
3002
-
3003
mgr = obj._mgr
3004
if numeric_only:
3005
mgr = mgr.get_numeric_data()
0 commit comments