Column Astype (DP_ASP)
This function casts a column to a specified datatype
This is a useful block in data processing that allows you to convert the data type of a column to a specified type. It provides flexibility in handling and transforming data by allowing you to change the data type of one or more columns.
Sample Request
{
"project_id": 41,
"block_id": 10,
"parent_id": 9,
"function_code": "DP_ASP",
"args": {
"astype": "int32",
"columns": [0, 5, 7]
}
}Parameter Details
Column Astype
POST https://autogon.ai/api/v1/engine/start
Request Body
Name
Type
Description
project_id*
int
current project ID
parent_id*
int
parent block ID
block_id*
int
current block ID
function_code*
String
block's function code
astype*
String
New datatype
args*
object
block arguments
columns*
Array
Columns to apply type conversion
Last updated
Was this helpful?