Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - Antiselect - 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
17.20
Publication Date
November 2022
Content Type
Programming Reference
Publication ID
B700-4500-112K
ft:locale
en-US
ft:lastEdition
2024-02-21
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_1720
Product Category
Teradata Vantage

 
teradataml.analytics.sqle.Antiselect = class Antiselect(builtins.object)
     Methods defined here:
__init__(self, data=None, exclude=None, data_order_column=None)
DESCRIPTION:
    AntiSelect returns all columns except those specified in the  
    exclude argument.
 
    Note: This function is only available when teradataml is connected
          to Vantage 1.1 or later versions.
 
 
PARAMETERS:
    data:
        Required Argument.
        Specifies the name of the teradataml DataFrame.
 
    exclude:
        Required Argument.
        Specifies the names of the columns not to return.
        Types: str OR list of Strings (str)
   
    data_order_column:
        Optional Argument.
        Specifies Order By columns for data.
        Values to this argument can be provided as a list, if multiple 
        columns are used for ordering.
        Types: str OR list of Strings (str)
 
 
RETURNS:
    Instance of Antiselect.
    Output teradataml DataFrames can be accessed using attribute 
    references, such as AntiselectObj.<attribute_name>.
    Output teradataml DataFrame attribute name is:
        result
 
 
RAISES:
    TeradataMlException
 
 
EXAMPLES:
    # Load the data to run the example.
    load_example_data("antiselect", "antiselect_input")
    
    # Create teradataml DataFrame objects.
    antiselect_input = DataFrame.from_table("antiselect_input")
 
    # Example1 - Fetching all columns except the columns 'rowids' and
    # 'orderdate'.
    antiselect_out = Antiselect(data=antiselect_input,
                                exclude=['rowids','orderdate'])
    
    # Print the results.
    print(antiselect_out.result)
__repr__(self)
Returns the string representation for a Antiselect class instance.
get_build_time(self)
Function to return the build time of the algorithm in seconds.
When model object is created using retrieve_model(), then the value returned is
as saved in the Model Catalog.
get_prediction_type(self)
Function to return the Prediction type of the algorithm.
When model object is created using retrieve_model(), then the value returned is
as saved in the Model Catalog.
get_target_column(self)
Function to return the Target Column of the algorithm.
When model object is created using retrieve_model(), then the value returned is
as saved in the Model Catalog.
show_query(self)
Function to return the underlying SQL query.
When model object is created using retrieve_model(), then None is returned.