Teradata Package for Python Function Reference on VantageCloud Lake - db_python_package_version_diff - 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.11
Publication Date
August 2026
Content Type
Programming Reference
Publication ID
B700-4500-200K
ft:locale
en-US
ft:lastEdition
2026-08-13
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.dbutils.dbutils.db_python_package_version_diff = db_python_package_version_diff(packages=None)
DESCRIPTION:
    Function to get the difference of the Python packages installed on Vantage and
    in the current environment mentioned in the argument "packages".
 
    Notes:
        * Using this function is valid only when Python interpreter and add-on packages
          are installed on the Vantage node.
        * This function also checks for differences in Python packages versions given
          part of package name as string.
 
PARAMETERS:
    packages:
        Optional Argument.
        Specifies the name(s) of the Python package(s) for which the difference
        in the versions is to be fetched from Vantage.
        Notes:
            * If this argument is None, all the packages installed on Vantage are considered.
            * If any package is present in Vantage but not in the current environment, then None
              is shown as the version of the package in the current environment.
        Types: str or list of str
 
RETURNS:
    pandas DataFrame
 
RAISES:
    TeradataMlException.
 
EXAMPLES:
    # Note:
    # These examples will work only when the Python packages are installed on Vantage.
 
    # Example 1: Get the difference in the versions of Python package 'dill' installed on Vantage.
    >>> db_python_package_version_diff("dill")
              package   vantage    local
    0            dill    0.10.0   0.11.2
 
    # Example 2: Get the difference in the versions of all Python packages installed on Vantage.
    >>> db_python_package_version_diff()
              package   vantage    local
    0    scikit-learn     1.3.3   0.24.2
    1            dill    0.10.0   0.11.2
    ...
    532         attrs    18.2.0   17.0.0