From df7fb24b66ea761dde31606ab6a37ff342701911 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:24:57 +0100 Subject: [PATCH 1/2] docs(python): fix build --- py-polars/docs/source/reference/config.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-polars/docs/source/reference/config.rst b/py-polars/docs/source/reference/config.rst index 289656b2a313..edc606a31e60 100644 --- a/py-polars/docs/source/reference/config.rst +++ b/py-polars/docs/source/reference/config.rst @@ -20,10 +20,10 @@ Config options Config.set_tbl_cell_alignment Config.set_tbl_cell_numeric_alignment Config.set_tbl_cols - Config.set_tbl_column_dtype_inline + Config.set_tbl_column_data_type_inline Config.set_tbl_dataframe_shape_below Config.set_tbl_formatting - Config.set_tbl_hide_column_dtypes + Config.set_tbl_hide_column_data_types Config.set_tbl_hide_column_names Config.set_tbl_hide_dataframe_shape Config.set_tbl_hide_dtype_separator From b456d5526e3f2a77b05b853f4f29499a4f6df6fd Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Sat, 7 Sep 2024 21:33:54 +0100 Subject: [PATCH 2/2] fixup docstring too --- py-polars/polars/dataframe/frame.py | 22 +++++++++++----------- py-polars/polars/lazyframe/frame.py | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index ce6c46299db6..f0d2d1abe2e4 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -7114,13 +7114,13 @@ def join_where( Examples -------- >>> east = pl.DataFrame( - ... { - ... "id": [100, 101, 102], - ... "dur": [120, 140, 160], - ... "rev": [12, 14, 16], - ... "cores": [2, 8, 4], - ... } - ...) + ... { + ... "id": [100, 101, 102], + ... "dur": [120, 140, 160], + ... "rev": [12, 14, 16], + ... "cores": [2, 8, 4], + ... } + ... ) >>> west = pl.DataFrame( ... { ... "t_id": [404, 498, 676, 742], @@ -7130,10 +7130,10 @@ def join_where( ... } ... ) >>> east.join_where( - >>> west, - >>> pl.col("dur") < pl.col("time"), - >>> pl.col("rev") < pl.col("cost"), - >>> ) + ... west, + ... pl.col("dur") < pl.col("time"), + ... pl.col("rev") < pl.col("cost"), + ... ) shape: (5, 8) ┌─────┬─────┬─────┬───────┬──────┬──────┬──────┬─────────────┐ │ id ┆ dur ┆ rev ┆ cores ┆ t_id ┆ time ┆ cost ┆ cores_right │ diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index 3cf2e155558f..d326e5e15abc 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -4590,13 +4590,13 @@ def join_where( Examples -------- >>> east = pl.LazyFrame( - ... { - ... "id": [100, 101, 102], - ... "dur": [120, 140, 160], - ... "rev": [12, 14, 16], - ... "cores": [2, 8, 4], - ... } - ...) + ... { + ... "id": [100, 101, 102], + ... "dur": [120, 140, 160], + ... "rev": [12, 14, 16], + ... "cores": [2, 8, 4], + ... } + ... ) >>> west = pl.LazyFrame( ... { ... "t_id": [404, 498, 676, 742], @@ -4606,10 +4606,10 @@ def join_where( ... } ... ) >>> east.join_where( - >>> west, - >>> pl.col("dur") < pl.col("time"), - >>> pl.col("rev") < pl.col("cost"), - >>> ).collect() + ... west, + ... pl.col("dur") < pl.col("time"), + ... pl.col("rev") < pl.col("cost"), + ... ).collect() shape: (5, 8) ┌─────┬─────┬─────┬───────┬──────┬──────┬──────┬─────────────┐ │ id ┆ dur ┆ rev ┆ cores ┆ t_id ┆ time ┆ cost ┆ cores_right │