From 711286ca20f16e6b2b21a047b615adf49b964df4 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Wed, 17 Jan 2024 17:48:56 +0100 Subject: [PATCH] Fix --- py-polars/polars/dataframe/frame.py | 2 +- py-polars/polars/lazyframe/frame.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 312627021d8e..93b9cd6812d1 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -5306,7 +5306,7 @@ def with_row_count(self, name: str = "row_nr", offset: int = 0) -> Self: Add a column at index 0 that counts the rows. .. deprecated:: - Use `with_row_index` instead. + Use :meth:`with_row_index` instead. Note that the default column name has changed from 'row_nr' to 'index'. Parameters diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index 8c749fd5bcb1..c4dde65c3cd3 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -4650,7 +4650,7 @@ def with_row_count(self, name: str = "row_nr", offset: int = 0) -> Self: Add a column at index 0 that counts the rows. .. deprecated:: - Use `with_row_index` instead. + Use :meth:`with_row_index` instead. Note that the default column name has changed from 'row_nr' to 'index'. Parameters