We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groupby.apply on a specific column does not preserve the name of the series for the output. Example drawn form #8898 .
import cudf import numpy as np np.random.seed(12) nrows = 1000000 nkeys = 100 keycol = np.random.choice(range(nkeys), nrows) df = cudf.DataFrame({ "key": keycol, "a": np.random.randint(0, 1000, nrows), }) pdf = df.to_pandas() print( pdf.groupby("key").a.apply(mean_minus_deduped_std).name, df.groupby("key").a.apply(mean_minus_deduped_std).name ) a None```
!conda list | grep "cudf|pandas|numpy|arrow" arrow-cpp 4.0.1 py38hf0991f3_4_cuda conda-forge arrow-cpp-proc 3.0.0 cuda conda-forge cudf 21.08.00a210723 cuda_11.2_py38_ga69a8a43b5_324 rapidsai-nightly cudf_kafka 21.08.00a210723 py38_ga69a8a43b5_324 rapidsai-nightly dask-cudf 21.08.00a210723 py38_ga69a8a43b5_324 rapidsai-nightly geopandas 0.9.0 pyhd8ed1ab_1 conda-forge geopandas-base 0.9.0 pyhd8ed1ab_1 conda-forge libcudf 21.08.00a210723 cuda11.2_ga69a8a43b5_324 rapidsai-nightly libcudf_kafka 21.08.00a210723 ga69a8a43b5_324 rapidsai-nightly numpy 1.21.1 py38h9894fe3_0 conda-forge pandas 1.2.5 py38h1abd341_0 conda-forge pyarrow 4.0.1 py38hb53058b_4_cuda conda-forge
The text was updated successfully, but these errors were encountered:
SeriesGroupby.apply()
Apply series name to result of SeriesGroupby.apply() (#8939)
e8b05de
Closes #8899 Applies the name of `SeriesGroupby.obj` to the results of a `SeriesGroupby.apply()` operation; originally, this would be left as `None`. Authors: - Charles Blackmon-Luca (https://github.com/charlesbluca) Approvers: - Sheilah Kirui (https://github.com/skirui-source) - Michael Wang (https://github.com/isVoid) URL: #8939
Apply series name to result of SeriesGroupby.apply() (rapidsai#8939)
0f109d7
Closes rapidsai#8899 Applies the name of `SeriesGroupby.obj` to the results of a `SeriesGroupby.apply()` operation; originally, this would be left as `None`. Authors: - Charles Blackmon-Luca (https://github.com/charlesbluca) Approvers: - Sheilah Kirui (https://github.com/skirui-source) - Michael Wang (https://github.com/isVoid) URL: rapidsai#8939
charlesbluca
Successfully merging a pull request may close this issue.
Groupby.apply on a specific column does not preserve the name of the series for the output. Example drawn form #8898 .
!conda list | grep "cudf|pandas|numpy|arrow"
arrow-cpp 4.0.1 py38hf0991f3_4_cuda conda-forge
arrow-cpp-proc 3.0.0 cuda conda-forge
cudf 21.08.00a210723 cuda_11.2_py38_ga69a8a43b5_324 rapidsai-nightly
cudf_kafka 21.08.00a210723 py38_ga69a8a43b5_324 rapidsai-nightly
dask-cudf 21.08.00a210723 py38_ga69a8a43b5_324 rapidsai-nightly
geopandas 0.9.0 pyhd8ed1ab_1 conda-forge
geopandas-base 0.9.0 pyhd8ed1ab_1 conda-forge
libcudf 21.08.00a210723 cuda11.2_ga69a8a43b5_324 rapidsai-nightly
libcudf_kafka 21.08.00a210723 ga69a8a43b5_324 rapidsai-nightly
numpy 1.21.1 py38h9894fe3_0 conda-forge
pandas 1.2.5 py38h1abd341_0 conda-forge
pyarrow 4.0.1 py38hb53058b_4_cuda conda-forge
The text was updated successfully, but these errors were encountered: