Skip to content

Commit

Permalink
Doc: interleave columns pandas compat (#15383)
Browse files Browse the repository at this point in the history
Add a `pandas_compat` note to `DataFrame.interleave_columns`

Authors:
  - Ray Bell (https://github.com/raybellwaves)
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #15383
  • Loading branch information
raybellwaves authored May 2, 2024
1 parent e58838b commit 6882870
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -7556,6 +7556,12 @@ def interleave_columns(self):
Returns
-------
The interleaved columns as a single column
.. pandas-compat::
**DataFrame.interleave_columns**
This method does not exist in pandas but it can be run
as ``pd.Series(np.vstack(df.to_numpy()).reshape((-1,)))``.
"""
if ("category" == self.dtypes).any():
raise ValueError(
Expand Down

0 comments on commit 6882870

Please sign in to comment.