DataColumn Class

A dataframe column

Inheritance
azure.ai.ml.entities._mixins.RestTranslatableMixin
DataColumn

Constructor

DataColumn(*, name: str, type: str | DataColumnType | None = None, **kwargs: Any)

Parameters

Name Description
name
Required
str

The column name

type
Required
Optional[<xref:union>[str, DataColumnType]]

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())