Teradata Package for Python Function Reference on VantageCloud Lake - __repr__ - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.
Teradata® Package for Python Function Reference on VantageCloud Lake
- Deployment
- VantageCloud
- Edition
- Lake
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.08
- Published
- November 2025
- ft:locale
- en-US
- ft:lastEdition
- 2025-12-05
- dita:id
- TeradataPython_FxRef_Lake_2000
- Product Category
- Teradata Vantage
- teradataml.store.feature_store.models.FeatureGroup.__repr__ = __repr__(self)
- DESCRIPTION:
String representation for FeatureGroup object.
PARAMETERS:
None
RETURNS:
str
RAISES:
None
EXAMPLES:
>>> from teradataml import DataSource, Entity, Feature, FeatureGroup, load_example_data
>>> load_example_data("dataframe", "sales")
# Let's create DataFrame first.
>>> df = DataFrame("sales")
# create the features.
>>> jan_feature = Feature("sales:Jan", df.Jan)
>>> feb_feature = Feature("sales:Fan", df.Feb)
>>> mar_feature = Feature("sales:Mar", df.Mar)
# Create Entity.
>>> entity = Entity("sales:accounts", df.accounts)
# Create DataSource.
>>> data_source = DataSource("sales_source", df.show_query())
# Create FeatureGroup.
>>> fg = FeatureGroup("sales_data_fg", features=[jan_feature, feb_feature, mar_feature],
... entity=entity, data_source=data_source)
# Get the string representation of FeatureGroup.
>>> fg
FeatureGroup(sales_data_fg, features=[Feature(name=sales:Jan), Feature(name=sales:Feb), Feature(name=sales:Mar)], entity=Entity(name=sales:accounts), data_source=DataSource(Sales_Data))