Teradata Python Package Function Reference - info - 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.info = info(self, verbose=True, buf=None, max_cols=None, null_counts=False)
DESCRIPTION:
    Print a summary of the DataFrame.
 
PARAMETERS:
    verbose:
        Optional Argument.
        Print full summary if True. Print short summary if False.
        Default Value: True
        Types: bool
 
    buf:
        Optional Argument.
        The writable buffer to send the output to. By default, the output is
        sent to sys.stdout.
 
    max_cols:
        Optional Argument.
        The maximum number of columns allowed for printing the full summary.
        Types: int
 
    null_counts:
        Optional Argument.
        Whether to show the non-null counts.
        Display the counts if True, otherwise do not display the counts.
        Default Value: False
        Types: bool
 
RETURNS:
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    >>> load_example_data("dataframe","sales")
    >>> df = DataFrame.from_table('sales')
    >>> df.info()
    <class 'teradataml.dataframe.dataframe.DataFrame'>
    Data columns (total 6 columns):
    accounts              str
    Feb                 float
    Jan                   int
    Mar                   int
    Apr                   int
    datetime    datetime.date
    dtypes: datetime.date(1), float(1), str(1), int(3)
    >>>
    >>> df.info(null_counts=True)
    <class 'teradataml.dataframe.dataframe.DataFrame'>
    Data columns (total 6 columns):
    accounts    6 non-null str
    Feb         6 non-null float
    Jan         4 non-null int
    Mar         4 non-null int
    Apr         4 non-null int
    datetime    6 non-null datetime.date
    dtypes: datetime.date(1), float(1), str(1), int(3)
    >>>
    >>> df.info(verbose=False)
    <class 'teradataml.dataframe.dataframe.DataFrame'>
    Data columns (total 6 columns):
    dtypes: datetime.date(1), float(1), str(1), int(3)
    >>>