From 0e7f07eb87c1727c65980b87d7c12465b8da683e Mon Sep 17 00:00:00 2001 From: gab23r <106454081+gab23r@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:02:47 +0100 Subject: [PATCH] docs(python): Mention `row_by_keys` in the `to_dict` documentation (#19767) Co-authored-by: gabriel --- py-polars/polars/dataframe/frame.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 49c2e2470534..d265466261aa 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -1627,6 +1627,11 @@ def to_dict( True -> Values are Series False -> Values are List[Any] + See Also + -------- + rows_by_key + to_dicts + Examples -------- >>> df = pl.DataFrame( @@ -10383,6 +10388,7 @@ def rows_by_key( -------- rows : Materialize all frame data as a list of rows (potentially expensive). iter_rows : Row iterator over frame data (does not materialize all rows). + to_dict : Convert DataFrame to a dictionary mapping column name to values. Examples --------