From 68828708497252f9c9dae617b9f29ae7de448309 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Thu, 2 May 2024 13:03:26 -0400 Subject: [PATCH] Doc: interleave columns pandas compat (#15383) 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: https://github.com/rapidsai/cudf/pull/15383 --- python/cudf/cudf/core/dataframe.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/cudf/cudf/core/dataframe.py b/python/cudf/cudf/core/dataframe.py index 45bb66d5d4b..1e6ae861679 100644 --- a/python/cudf/cudf/core/dataframe.py +++ b/python/cudf/cudf/core/dataframe.py @@ -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(