diff --git a/py-polars/docs/source/reference/lazyframe/miscellaneous.rst b/py-polars/docs/source/reference/lazyframe/miscellaneous.rst index 2a0ab647766d..0cdf5096e445 100644 --- a/py-polars/docs/source/reference/lazyframe/miscellaneous.rst +++ b/py-polars/docs/source/reference/lazyframe/miscellaneous.rst @@ -10,6 +10,7 @@ Miscellaneous LazyFrame.collect LazyFrame.collect_async LazyFrame.collect_schema + LazyFrame.fetch LazyFrame.lazy LazyFrame.map_batches LazyFrame.pipe diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index bda794596522..a78e5d07b778 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -1889,7 +1889,6 @@ def collect( See Also -------- - fetch: Run the query on the first `n` rows only for debugging purposes. explain : Print the query plan that is evaluated with collect. profile : Collect the LazyFrame and time each node in the computation graph. polars.collect_all : Collect multiple LazyFrames at the same time. @@ -4928,12 +4927,6 @@ def limit(self, n: int = 5) -> LazyFrame: n Number of rows to return. - Notes - ----- - Consider using the :func:`fetch` operation if you only want to test your - query. The :func:`fetch` operation will load the first `n` rows at the scan - level, whereas the :func:`head`/:func:`limit` are applied at the end. - Examples -------- >>> lf = pl.LazyFrame( @@ -4977,12 +4970,6 @@ def head(self, n: int = 5) -> LazyFrame: n Number of rows to return. - Notes - ----- - Consider using the :func:`fetch` operation if you only want to test your - query. The :func:`fetch` operation will load the first `n` rows at the scan - level, whereas the :func:`head`/:func:`limit` are applied at the end. - Examples -------- >>> lf = pl.LazyFrame(