cudf.core.column.lists.ListMethods.astype#

ListMethods.astype(dtype)[source]#

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)