Repository navigation
Open
Labels
needs attentionIt's been a while since this was pushed on. Needs attention from the owner or a maintainer.needs triageNeeds a response from a contributor
Description
running the following with pandas 2.2.0.dev0+390.g59d4e84128 (nightly)
import dask.dataframe as dd
import pandas as pd
pdf = pd.DataFrame(
{"a": [1, 2, 6, 4, 4, 6, 4, 3, 7], "b": [4, 2, 7, 3, 3, 1, 1, 1, 2]},
index=[0, 1, 3, 5, 6, 8, 9, 9, 9],
)
ddf = dd.from_pandas(pdf, npartitions=3)
ddf.groupby("b").a.cov().compute()outputs the following:
/home/graingert/projects/dask/dask/dataframe/groupby.py:674: FutureWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.
mul = g.apply(_mul_cols, cols=cols).reset_index(level=-1, drop=True)
/home/graingert/projects/dask/dask/dataframe/groupby.py:732: FutureWarning: The previous implementation of stack is deprecated and will be removed in a future version of pandas. See the What's New notes for pandas 2.1.0 for details. Specify future_stack=True to adopt the new implementation and silence this warning.
s_result = result.stack(dropna=False)
/home/graingert/projects/dask/dask/dataframe/groupby.py:674: FutureWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.
mul = g.apply(_mul_cols, cols=cols).reset_index(level=-1, drop=True)
/home/graingert/projects/dask/dask/dataframe/groupby.py:674: FutureWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.
mul = g.apply(_mul_cols, cols=cols).reset_index(level=-1, drop=True)
/home/graingert/projects/dask/dask/dataframe/groupby.py:674: FutureWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.
mul = g.apply(_mul_cols, cols=cols).reset_index(level=-1, drop=True)
/home/graingert/projects/dask/dask/dataframe/groupby.py:592: RuntimeWarning: invalid value encountered in scalar divide
val = (df[mul_col] - df[i] * df[j] / n).values[0] / div.values[0]
/home/graingert/projects/dask/dask/dataframe/groupby.py:592: RuntimeWarning: invalid value encountered in scalar divide
val = (df[mul_col] - df[i] * df[j] / n).values[0] / div.values[0]
/home/graingert/projects/dask/dask/dataframe/groupby.py:732: FutureWarning: The previous implementation of stack is deprecated and will be removed in a future version of pandas. See the What's New notes for pandas 2.1.0 for details. Specify future_stack=True to adopt the new implementation and silence this warning.
s_result = result.stack(dropna=False)
Metadata
Metadata
Assignees
Labels
needs attentionIt's been a while since this was pushed on. Needs attention from the owner or a maintainer.needs triageNeeds a response from a contributor
Activity