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())
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Python