val_install_location | Teradata Package for Python - 17.00 - val_install_location - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.00
Release Date
November 2021
Content Type
User Guide
Publication ID
B700-4006-070K
Language
English (United States)

The val_install_location configuration option indicates the name of the database where Vantage Analytic Library functions are installed. This option is internally used by VAL functions.

Example

  • Import all modules.
    >>> from teradataml import *
  • Set the configuration option val_install_location to "SYSLIB".
    >>> # Set the teradataml configuration option 'val_install_location' to "SYSLIB"
    >>> configure.val_install_location = "SYSLIB"
  • Create a data frame.
    >>> df = DataFrame("credit_tran")
  • Perform Association analysis using default values.
    >>> # Perform Association analysis using default values.
    >>> obj = valib.Association(data=df, group_column="cust_id", item_column="channel")
  • Print the affinity result.
    >>> # Print the affinity result. Only affinity result for default combination 11 is produced.
    >>> print(obj.result_11)