Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - files - 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.scriptmgmt.UserEnv.UserEnv.files
DESCRIPTION:
    A class property that returns list of files installed in remote user environment.
 
PARAMETERS:
    None
 
RETURNS:
    Pandas DataFrame containing files and it's details.
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    # Create a remote user environment.
    >>> env = create_env('testenv', 'python_3.7.9', 'Test environment')
    User environment testenv created.
 
    >>> env.install_file(file_path = 'data/scripts/mapper.py')
    File mapper.py installed successfully in the remote user environment testenv.
 
    # List files installed in the user environment.
    >>> env.files
             File  Size                Timestamp
    0   mapper.py   233     2020-08-06T21:59:22Z