Teradata Python Package Function Reference - __repr__ - 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.dataframe.dataframe.DataFrame.__repr__ = __repr__(self)
Returns the string representation for a teradataml DataFrame instance.
The string contains:
    1. Column names of the dataframe.
    2. At most the first no_of_rows rows of the dataframe.
    3. A default index for row numbers.
 
NOTES:
  - This makes an explicit call to get rows from the database.
  - To change number of rows to be printed set the max_rows option in options.display.display
  - Default value of max_rows is 10
 
EXAMPLES:
    df = DataFrame.from_table("table1")
    print(df)
 
    df = DataFrame.from_query("select col1, col2, col3 from table1")
    print(df)