Type Definition polars_core::datatypes::DurationChunked
source · [−]pub type DurationChunked = Logical<DurationType, Int64Type>;
Implementations
sourceimpl DurationChunked
impl DurationChunked
pub fn time_unit(&self) -> TimeUnit
sourcepub fn cast_time_unit(&self, tu: TimeUnit) -> Self
pub fn cast_time_unit(&self, tu: TimeUnit) -> Self
Change the underlying TimeUnit
. And update the data accordingly.
sourcepub fn set_time_unit(&mut self, tu: TimeUnit)
pub fn set_time_unit(&mut self, tu: TimeUnit)
Change the underlying TimeUnit
. This does not modify the data.
sourcepub fn from_duration<I: IntoIterator<Item = ChronoDuration>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
pub fn from_duration<I: IntoIterator<Item = ChronoDuration>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
Construct a new DurationChunked
from an iterator over ChronoDuration
.
sourcepub fn from_duration_options<I: IntoIterator<Item = Option<ChronoDuration>>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
pub fn from_duration_options<I: IntoIterator<Item = Option<ChronoDuration>>>(
name: &str,
v: I,
tu: TimeUnit
) -> Self
Construct a new DurationChunked
from an iterator over optional ChronoDuration
.