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

NameTypeDescription

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

{
    "status": "true",
    "message": {
        "id": 3,
        "project": 1,
        "block_id": 7,
        "parent_id": 6,
        "dataset_url": "",
        "x_value_url": "",
        "y_value_url": ""
    }
}
// Some code

Last updated