转换定点数#
- pylibcudf.strings.convert.convert_fixed_point.from_fixed_point(Column input) Column #
返回一个新的字符串列,将定点值转换为字符串列。
详情请参阅
cudf::strings::from_fixed_point()
- 参数:
- inputColumn
要转换的定点数列。
- 返回值:
- Column
新的字符串列。
- pylibcudf.strings.convert.convert_fixed_point.is_fixed_point(Column input, DataType decimal_type=None) Column #
返回一个布尔列,指示哪些字符串的所有字符对于转换为定点数是有效的。
详情请参阅
cudf::strings::is_fixed_point()
- 参数:
- inputColumn
此操作的字符串实例。
- decimal_typeDataType
仅用于检查溢出的定点类型(带比例)。默认为 Decimal64
- 返回值:
- Column
每个字符串的布尔结果新列。
- pylibcudf.strings.convert.convert_fixed_point.to_fixed_point(Column input, DataType output_type) Column #
返回一个新的定点数列,解析提供的字符串列中的十进制值。
详情请参阅
cudf::strings::to_fixed_point()
- 参数:
- inputColumn
此操作的字符串实例。
- output_typeDataType
要返回的定点数列类型,包括比例值。
- 返回值:
- Column
output_type 类型的新列。