datetime#

pylibcudf.datetime.extract_datetime_component(Column values, datetime_component component) Column#

Extract a datetime component from a datetime column.

For details, see cudf::extract_datetime_component().

Parameters:
valuesColumn

The column to extract the component from.

componentDatetimeComponent

The datetime component to extract.

Returns:
Column

Column with the extracted component.

pylibcudf.datetime.extract_year(Column values) Column#

Extract the year from a datetime column.

Parameters:
valuesColumn

The column to extract the year from.

Returns:
Column

Column with the extracted years.