[FEA] Add method argument to DataFrame.quantile #11572
Labels
feature request
New feature or request
good first issue
Good for newcomers
Python
Affects Python cuDF API.
Milestone
Is your feature request related to a problem? Please describe.
@charlesbluca and @mroeschke did some nice work recently to add muli-column support to Pandas' quantile method (pandas-dev/pandas#44301). The accepted solution there was to add a
method
argument (with the options being"table"
and"single"
) toDataFrame.quantile
, rather than adding aDataFrame.quantiles
method (like we have in cudf).The new
quantile
change will be introduced to Pandas in the next release. In order to simplify the development of library-agnostic multi-column sorting indask.dataframe
, I suggest that we align the cudf and pandasquantile
arguments.Describe the solution you'd like
I would like for
cudf.DataFrame.quantile
to have the samemethod
argument aspd.DataFrame.quantile
. In the future, it will probably make sense to deprecatecudf.DataFrame.quantiles
(note the plurality) altogether.Describe alternatives you've considered
The alternative is to allow unnecessary API divergence between cudf and pandas, complicating both
dask.dataframe
and user code.The text was updated successfully, but these errors were encountered: