Set the type of a feature in a feature group. Specify the feature group ID, feature name, and feature type, and the method will return the new column with the changes reflected.
Arguments:
REQUIRED
KEY
TYPE
DESCRIPTION
Yes
featureGroupId
str
The unique ID associated with the feature group.
Yes
feature
str
The name of the feature.
Yes
featureType
str
The machine learning type of the data in the feature.
No
projectId
str
Optional unique ID associated with the project.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.
Response:
KEY
TYPE
DESCRIPTION
success
Boolean
true if the call succeeded, false if there was an error
result
Schema
KEY
TYPE
Description
name
str
The unique name of the feature.
featureMapping
str
The mapping of the feature.
The possible values will be based on the project's use-case. See the (Use Case Documentation)[https://staging.abacus.ai/app/help/useCases] for more details.
detectedFeatureMapping
str
Detected feature mapping for this feature
featureType
str
The underlying data type of each feature:
CATEGORICAL,
CATEGORICAL_LIST,
NUMERICAL,
TIMESTAMP,
TEXT,
EMAIL,
LABEL_LIST,
ENTITY_LABEL_LIST,
PAGE_LABEL_LIST,
JSON,
OBJECT_REFERENCE,
MULTICATEGORICAL_LIST,
COORDINATE_LIST,
NUMERICAL_LIST,
TIMESTAMP_LIST,
ZIPCODE,
URL,
PAGE_INFOS,
PAGES_DOCUMENT,
TOKENS_DOCUMENT,
MESSAGE_LIST.
detectedFeatureType
str
The detected feature type for this feature
dataType
str
The underlying data type of each feature:
INTEGER,
FLOAT,
STRING,
DATE,
DATETIME,
BOOLEAN,
LIST,
STRUCT,
NULL,
BINARY.
detectedDataType
str
The detected data type for this feature
nestedFeatures
NestedFeatureSchema
List of features of nested feature
KEY
TYPE
Description
name
str
The unique name of the column
featureType
str
Feature Type of the Feature
featureMapping
str
The Feature Mapping of the feature
dataType
str
Data Type of the Feature
detectedFeatureType
str
The detected feature type for this feature
sourceTable
str
The source table of the column
pointInTimeInfo
PointInTimeFeatureInfo
Point in time information for this feature
KEY
TYPE
Description
expression
str
SQL aggregate expression which can convert a sequence of rows into a scalar value.
groupName
str
The group name this point-in-time feature belongs to.
pointInTimeInfo
PointInTimeFeatureInfo
Point in time information for this feature
KEY
TYPE
Description
expression
str
SQL aggregate expression which can convert a sequence of rows into a scalar value.
groupName
str
The group name this point-in-time feature belongs to.
Exceptions:
TYPE
WHEN
DataNotFoundError
`featureGroupId` is not found.
DataNotFoundError
`projectId` is not found.
InvalidEnumParameterError
An invalid value is passed for `featureType`.
InvalidParameterError
The column is not found in the underlying datasets or features.
InvalidEnumParameterError
The DataType is invalid for the current ColumnMapping.