Skip to content

Commit

Permalink
python polars 0.13.9 (#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Mar 7, 2022
1 parent 8a87716 commit 1202408
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions polars/polars-core/src/chunked_array/temporal/utf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ impl Utf8Chunked {
}

#[cfg(feature = "dtype-time")]
/// Parsing string values and return a [`TimeChunked`]
pub fn as_time(&self, fmt: Option<&str>) -> Result<TimeChunked> {
let fmt = match fmt {
Some(fmt) => fmt,
Expand Down Expand Up @@ -183,6 +184,9 @@ impl Utf8Chunked {
}

#[cfg(feature = "dtype-date")]
/// Parsing string values and return a [`DateChunked`]
/// Different from `as_date` this function allows matches that not contain the whole string
/// e.g. "foo-2021-01-01-bar" could match "2021-01-01"
pub fn as_date_not_exact(&self, fmt: Option<&str>) -> Result<DateChunked> {
let fmt = match fmt {
Some(fmt) => fmt,
Expand Down Expand Up @@ -223,6 +227,9 @@ impl Utf8Chunked {
}

#[cfg(feature = "dtype-datetime")]
/// Parsing string values and return a [`DatetimeChunked`]
/// Different from `as_datetime` this function allows matches that not contain the whole string
/// e.g. "foo-2021-01-01-bar" could match "2021-01-01"
pub fn as_datetime_not_exact(
&self,
fmt: Option<&str>,
Expand Down Expand Up @@ -274,6 +281,7 @@ impl Utf8Chunked {
}

#[cfg(feature = "dtype-date")]
/// Parsing string values and return a [`DateChunked`]
pub fn as_date(&self, fmt: Option<&str>) -> Result<DateChunked> {
let fmt = match fmt {
Some(fmt) => fmt,
Expand Down Expand Up @@ -310,6 +318,7 @@ impl Utf8Chunked {
}

#[cfg(feature = "dtype-datetime")]
/// Parsing string values and return a [`DatetimeChunked`]
pub fn as_datetime(&self, fmt: Option<&str>, tu: TimeUnit) -> Result<DatetimeChunked> {
let fmt = match fmt {
Some(fmt) => fmt,
Expand Down
2 changes: 1 addition & 1 deletion py-polars/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion py-polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "py-polars"
version = "0.13.8"
version = "0.13.9"
authors = ["ritchie46 <ritchie46@gmail.com>"]
documentation = "https://pola-rs.github.io/polars/py-polars/html/reference/index.html"
edition = "2021"
Expand Down

0 comments on commit 1202408

Please sign in to comment.