Teradata Package for Python Function Reference on VantageCloud Lake - __eq__ - 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.Entity.__eq__ = __eq__(self, other)
Compare the Entity with other Entity to check if both are
same or not.
 
PARAMETERS:
    other :
        Required Argument.
        Specifies another Entity.
        Types: Entity
 
RETURNS:
    bool
 
RAISES:
    None
 
EXAMPLES:
    >>> load_example_data('dataframe', ['sales'])
    >>> df = DataFrame("sales")
 
    # Example 1: Create two entities and compare whether they are same or not.
    >>> from teradataml import Entity
    >>> entity1 = Entity('sales:accounts', 'accounts')
    >>> entity2 = Entity('sales:accounts', 'accounts')
    >>> entity1 == entity2
    True
    >>>