column_factories#

pylibcudf.column_factories.make_dictionary_from_scalar(
Scalar s,
size_type size,
stream: CudaStreamLike | None = None,
DeviceMemoryResource mr=None,
) → Column#

Creates a dictionary column with size rows that all equal a scalar.

For details, see make_dictionary_from_scalar().

Parameters:
sScalar

The value of every row. If s is null, every row is null and the keys child is empty.

sizeint

The number of rows of the result.

streamCudaStreamLike | None

CUDA stream on which to perform the operation.

mrDeviceMemoryResource | None

Device memory resource used to allocate the returned column’s device memory.

Returns:
Column

A dictionary Column with keys of type s.type().

pylibcudf.column_factories.make_duration_column(
signatures,
args,
kwargs,
defaults,
_fused_sigindex={},
)#
pylibcudf.column_factories.make_empty_column(
signatures,
args,
kwargs,
defaults,
_fused_sigindex={},
)#

Creates an empty column of the specified type.

For details, see make_empty_column().

Parameters:
type_or_idUnion[DataType, type_id, object]

The column data type.

Returns:
Column

An empty Column

pylibcudf.column_factories.make_empty_lists_column(
DataType child_type,
stream: CudaStreamLike | None = None,
DeviceMemoryResource mr=None,
) → Column#

Creates an empty column of the specified type.

For details, see make_empty_lists_column().

Parameters:
child_typeDataType

The child column data type for the list column.

Returns:
Column

An empty Column

pylibcudf.column_factories.make_fixed_point_column(
signatures,
args,
kwargs,
defaults,
_fused_sigindex={},
)#
pylibcudf.column_factories.make_fixed_width_column(
signatures,
args,
kwargs,
defaults,
_fused_sigindex={},
)#
pylibcudf.column_factories.make_numeric_column(
signatures,
args,
kwargs,
defaults,
_fused_sigindex={},
)#

Creates an empty numeric column.

For details, see make_numeric_column().

pylibcudf.column_factories.make_timestamp_column(
signatures,
args,
kwargs,
defaults,
_fused_sigindex={},
)#