Teradata Python Package Function Reference - Antiselect - Teradata Python Package - Look here for syntax, methods and examples for the functions included in the Teradata Python Package.

Teradata® Python Package Function Reference

Product
Teradata Python Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2020-07-17
lifecycle
previous
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.