Teradata Package for Python Function Reference on VantageCloud Lake - info - 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.03
- Published
- December 2024
- ft:locale
- en-US
- ft:lastEdition
- 2024-12-19
- dita:id
- TeradataPython_FxRef_Lake_2000
- 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.
Speifies the writable buffer to send the output to.
If argument is not specified, by default, the output is
sent to sys.stdout.
max_cols:
Optional Argument.
Speifies the maximum number of columns allowed for printing the
full summary.
Types: int
null_counts:
Optional Argument.
Speifies 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)
>>>