[BUG] Missing "inplace" argument in "dask_cudf.DataFrame.drop" although it exists in documentation
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
Hi guys,
I tried `gdf.drop(columns=['Churn_Value'], inplace=True)` where `gdf` is a `dask_cudf.DataFrame` and I got this error `TypeError: drop() got an unexpected keyword argument 'inplace'` even though it is listed among the list of parameters in the doc for `dask_cudf.DataFrame.drop` :
```
dask_cudf.DataFrame.drop(
self,
labels=None,
axis=0,
columns=None,
errors='raise',
)
Docstring:
Drop specified labels from rows or columns.
This docstring was copied from pandas.core.frame.DataFrame.drop.
Some inconsistencies with the Dask version may exist.
Remove rows or columns by specifying label names and corresponding
axis, or by specifying directly index or column names. When using a
multi-index, labels on different levels can be removed by specifying
the level.
Parameters
----------
labels : single label or list-like
Index or column labels to drop.
axis : {0 or 'index', 1 or 'columns'}, default 0
Whether to drop labels from the index (0 or 'index') or
columns (1 or 'columns').
index : single label or list-like (Not supported in Dask)
Alternative to specifying axis (``labels, axis=0``
is equivalent to ``index=labels``).
columns : single label or list-like
Alternative to specifying axis (``labels, axis=1``
is equivalent to ``columns=labels``).
level : int or level name, optional (Not supported in Dask)
For MultiIndex, level from which the labels will be removed.
inplace : bool, default False (Not supported in Dask)
If False, return a copy. Otherwise, do operation
inplace and return None.
errors : {'ignore', 'raise'}, default 'raise'
If 'ignore', suppress error and only existing labels are
dropped.
Returns
-------
DataFrame or None
DataFrame without the removed index or column labels or
None if ``inplace=True``.
```
Can you guys check this out ?
Thanks :)
Contributor guide
Assessment
This issue has not been assessed yet.