hipdf.core.column.lists.ListMethods.astype

hipdf.core.column.lists.ListMethods.astype#

21 min read time

Applies to Linux

ListMethods.astype(dtype)#

Return a new list Series with the leaf values casted to the specified data type.

Parameters#

dtype: data type to cast leaves values to

Returns#

A new Series of lists

Examples#

>>> s = cudf.Series([[1, 2], [3, 4]])
>>> s.dtype
ListDtype(int64)
>>> s2 = s.list.astype("float64")
>>> s2.dtype
ListDtype(float64)