pub type TimeChunked = Logical<TimeType, Int64Type>;
Aliased Type§
struct TimeChunked(pub ChunkedArray<Int64Type>, _, pub Option<DataType>);
Fields§
§0: ChunkedArray<Int64Type>
§2: Option<DataType>
Implementations
Source§impl<K, T> Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
impl<K, T> Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
pub fn new_logical<J>(ca: ChunkedArray<T>) -> Logical<J, T>where
J: PolarsDataType,
Source§impl Logical<TimeType, Int64Type>
impl Logical<TimeType, Int64Type>
Sourcepub fn to_string(&self, format: &str) -> ChunkedArray<StringType>
pub fn to_string(&self, format: &str) -> ChunkedArray<StringType>
Convert from Time into String with the given format. See chrono strftime/strptime.
Sourcepub fn strftime(&self, format: &str) -> ChunkedArray<StringType>
pub fn strftime(&self, format: &str) -> ChunkedArray<StringType>
Convert from Time into String with the given format. See chrono strftime/strptime.
Alias for to_string
.
pub fn as_time_iter(&self) -> impl TrustedLen
Sourcepub fn from_naive_time<I>(
name: PlSmallStr,
v: I,
) -> Logical<TimeType, Int64Type>where
I: IntoIterator<Item = NaiveTime>,
pub fn from_naive_time<I>(
name: PlSmallStr,
v: I,
) -> Logical<TimeType, Int64Type>where
I: IntoIterator<Item = NaiveTime>,
Construct a new TimeChunked
from an iterator over NaiveTime
.
Sourcepub fn from_naive_time_options<I>(
name: PlSmallStr,
v: I,
) -> Logical<TimeType, Int64Type>
pub fn from_naive_time_options<I>( name: PlSmallStr, v: I, ) -> Logical<TimeType, Int64Type>
Construct a new TimeChunked
from an iterator over optional NaiveTime
.
Trait Implementations
Source§impl<K, T> Clone for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
impl<K, T> Clone for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
Source§impl<K, T> Default for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
impl<K, T> Default for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
Source§impl<K, T> Deref for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
impl<K, T> Deref for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
Source§impl<K, T> DerefMut for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
impl<K, T> DerefMut for Logical<K, T>where
K: PolarsDataType,
T: PolarsDataType,
Source§impl LogicalType for Logical<TimeType, Int64Type>
impl LogicalType for Logical<TimeType, Int64Type>
Source§fn dtype(&self) -> &'static DataType
fn dtype(&self) -> &'static DataType
ChunkedArray
.Source§fn get_any_value(&self, i: usize) -> Result<AnyValue<'_>, PolarsError>
fn get_any_value(&self, i: usize) -> Result<AnyValue<'_>, PolarsError>
AnyValue
from LogicalType
fn cast_with_options( &self, dtype: &DataType, cast_options: CastOptions, ) -> Result<Series, PolarsError>
fn cast(&self, dtype: &DataType) -> Result<Series, PolarsError>
Source§impl TimeMethods for Logical<TimeType, Int64Type>
impl TimeMethods for Logical<TimeType, Int64Type>
Source§fn hour(&self) -> ChunkedArray<Int8Type>
fn hour(&self) -> ChunkedArray<Int8Type>
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
Source§fn minute(&self) -> ChunkedArray<Int8Type>
fn minute(&self) -> ChunkedArray<Int8Type>
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
Source§fn second(&self) -> ChunkedArray<Int8Type>
fn second(&self) -> ChunkedArray<Int8Type>
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
Source§fn nanosecond(&self) -> ChunkedArray<Int32Type>
fn nanosecond(&self) -> ChunkedArray<Int32Type>
Extract second from underlying NaiveDateTime representation. Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second.