ConvertDocs

internal interface ConvertDocs

Converts the values in the specified columns either to a supported target type or using a custom converter, keeping their original names and positions within the DataFrame.

This function does not immediately convert the columns but instead selects columns to convert and returns a Convert, which serves as an intermediate step. The Convert object provides methods to transform selected columns using:

Additionally, it offers a wide range of methods for converting to specific types, such as toStr, toDouble, and many others.

For the full list of supported types, see SupportedTypes.

Each method returns a new DataFrame with the updated columns.

Check out Grammar.

This can include column groups and nested columns.

See Selecting Columns.

For more information: See convert on the documentation website.

See also parse — a specialized form of the convert operation that parses String columns into other types without requiring explicit type specification.

Types

Link copied to clipboard

Selecting columns for various DataFrame operations can be done in the following ways:

Link copied to clipboard
typealias Grammar = Nothing
Link copied to clipboard

List of types, supported in convert to operation: