Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jan 4, 2024
1 parent b8c21bb commit 664e1c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions polars_business/polars_business/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.20.0", features = ["extension-module"] }
pyo3-polars = { version = "0.9", features = ["derive"] }
pyo3-polars = { version = "0.10.0", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
chrono = "0.4.31"
polars = { version = "0.35.4", features = ["dtype-date"], default-features = false }
polars-time = { version = "0.35.4", features = ["timezones"], default-features = false }
polars-ops = { version = "0.35.4", default-features = false }
polars = { version = "0.36.2", features = ["dtype-date"], default-features = false }
polars-time = { version = "0.36.2", features = ["timezones"], default-features = false }
polars-ops = { version = "0.36.2", default-features = false }

[target.'cfg(target_os = "linux")'.dependencies]
jemallocator = { version = "0.5", features = ["disable_initial_exec_tls"] }
4 changes: 2 additions & 2 deletions polars_business/polars_business/src/business_days.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub(crate) fn impl_advance_n_days(
let ca = &polars_ops::prelude::replace_time_zone(
s.datetime()?,
None,
&Utf8Chunked::from_iter(std::iter::once("raise")),
&StringChunked::from_iter(std::iter::once("raise")),
)?;
let out = match n.len() {
1 => {
Expand Down Expand Up @@ -216,7 +216,7 @@ pub(crate) fn impl_advance_n_days(
let out = polars_ops::prelude::replace_time_zone(
&out?.into_datetime(*time_unit, None),
time_zone.as_deref(),
&Utf8Chunked::from_iter(std::iter::once("raise")),
&StringChunked::from_iter(std::iter::once("raise")),
)?;
out.cast(original_dtype)
}
Expand Down
10 changes: 5 additions & 5 deletions polars_business/tests/test_date_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def test_eager() -> None:
result = plb.date_range(date(2023, 1, 1), date(2023, 1, 10), eager=True)
expected = pl.Series(
"date",
"literal",
[
date(2023, 1, 2),
date(2023, 1, 3),
Expand All @@ -25,7 +25,7 @@ def test_eager() -> None:

def test_expr() -> None:
expected = pl.Series(
"date",
"literal",
[
date(2023, 1, 2),
date(2023, 1, 3),
Expand All @@ -37,7 +37,7 @@ def test_expr() -> None:
],
)
result = pl.select(plb.date_range(date(2023, 1, 1), date(2023, 1, 10), eager=True))[
"date"
"literal"
]
assert_series_equal(result, expected)

Expand All @@ -52,7 +52,7 @@ def test_eager_custom_weekend() -> None:
date(2023, 1, 1), date(2023, 1, 10), eager=True, weekend=["Fri", "Sat"]
)
expected = pl.Series(
"date",
"literal",
[
date(2023, 1, 1),
date(2023, 1, 2),
Expand All @@ -76,7 +76,7 @@ def test_eager_custom_holiday() -> None:
holidays=[date(2023, 1, 2)],
)
expected = pl.Series(
"date",
"literal",
[
date(2023, 1, 1),
date(2023, 1, 3),
Expand Down

0 comments on commit 664e1c3

Please sign in to comment.