DataColumn Class
A dataframe column
- Inheritance
-
azure.ai.ml.entities._mixins.RestTranslatableMixinDataColumn
Constructor
DataColumn(*, name: str, type: str | DataColumnType | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
name
Required
|
The column name |
type
Required
|
The column data type. Defaults to None. |
kwargs
Required
|
A dictionary of additional configuration parameters. |
Keyword-Only Parameters
Name | Description |
---|---|
name
Required
|
|
type
Required
|
|
Examples
Using DataColumn when creating an index column for a feature store entity
from azure.ai.ml.entities import DataColumn, DataColumnType, FeatureStoreEntity
account_column = DataColumn(name="accountID", type=DataColumnType.STRING)
account_entity_config = FeatureStoreEntity(
name="account",
version="1",
index_columns=[account_column],
stage="Development",
description="This entity represents user account index key accountID.",
tags={"data_type": "nonPII"},
)
# wait for featurestore entity creation
fs_entity_poller = featurestore_client.feature_store_entities.begin_create_or_update(account_entity_config)
print(fs_entity_poller.result())
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python