Skip to content

Commit

Permalink
[FIX] pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akmalsoliev committed Feb 8, 2024
1 parent 42bd17d commit c7c321b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions polars_xdt/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,11 +749,11 @@ def month_delta(
>>> df = pl.DataFrame(
... {
... "start_date": [
... date(2024, 3, 1),
... date(2024, 3, 31),
... date(2022, 2, 28),
... date(2023, 1, 31),
... date(2019, 12, 31),
... date(2024, 3, 1),
... date(2024, 3, 31),
... date(2022, 2, 28),
... date(2023, 1, 31),
... date(2019, 12, 31),
... ],
... "end_date": [
... date(2023, 2, 28),
Expand Down
5 changes: 2 additions & 3 deletions src/month_delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ pub(crate) fn impl_month_delta(start_dates: &Series, end_dates: &Series) -> Pola

// Determines if the end date is earlier in the month than the start date,
// but not an entire month earlier
let subtraction_condition: bool = {
expected_days_diff.abs() > actual_days_diff.abs()
};
let subtraction_condition: bool =
{ expected_days_diff.abs() > actual_days_diff.abs() };

// Check 2: Check if both dates fall on the last days of
// their respective months
Expand Down

0 comments on commit c7c321b

Please sign in to comment.