From c744b5da78cceb00442c3882b69e856dbb77aba1 Mon Sep 17 00:00:00 2001 From: Royal Simpson Pinto <61479-royalpinto007@users.noreply.drupalcode.org> Date: Fri, 22 Sep 2023 15:06:23 +0530 Subject: [PATCH] feat(python): fix CI errors --- py-polars/polars/dataframe/frame.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 49389c58a4b8..1aec4107b78c 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -5786,6 +5786,7 @@ def join_asof( Examples -------- + Example 1: >>> from datetime import datetime >>> gdp = pl.DataFrame( ... { @@ -5822,9 +5823,7 @@ def join_asof( │ 2019-05-12 00:00:00 ┆ 83.52 ┆ 4696 │ └─────────────────────┴────────────┴──────┘ - - Examples - -------- + Example 2: >>> from datetime import datetime >>> sales = pl.DataFrame( ... { @@ -5852,10 +5851,8 @@ def join_asof( ... ).set_sorted("expense_date") >>> result = sales.join_asof( ... expenses, - ... on={"sale_date": "expense_date"}, - ... by={"region": "region"}, - ... by_left={"sales_amount": "expense_amount"}, - ... by_right={"expense_amount": "sales_amount"}, + ... left_on="sale_date", + ... right_on="expense_date", ... strategy="backward", ... ) >>> result