LazyColumn.astype
astype
Converts the type of the values in this column to the specified type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dtype
|
str | DuckDBPyType
|
The desired type for conversion. Can be a string (e.g., "INTEGER", "VARCHAR") or a DuckDBPyType object. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
LazyColumn |
LazyColumn
|
A new LazyColumn with values converted to the specified type. |
Examples: