Teradata Package for Python Function Reference | 17.10 - 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
- Product
- Teradata Package for Python
- Release Number
- 17.10
- Published
- April 2022
- Language
- English (United States)
- Last Update
- 2022-08-19
- lifecycle
- previous
- Product Category
- Teradata Vantage
- teradataml.geospatial.geodataframe.GeoDataFrame.info = info(self, verbose=True, buf=None, max_cols=None, null_counts=False)
- DESCRIPTION:
Print a summary of the GeoDataFrame.
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.
Specifies the maximum number of columns allowed for printing
the full summary.
Types: int
null_counts:
Optional Argument.
Specifies 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("geodataframe","sample_streets")
>>> df = GeoDataFrame('sample_streets')
>>> df.info()
<class 'teradataml.geospatial.geodataframe.GeoDataFrame'>
Data columns (total 3 columns):
skey int
street_name str
street_shape str
dtypes: str(2), int(1)
>>>
>>> df.info(null_counts=True)
<class 'teradataml.geospatial.geodataframe.GeoDataFrame'>
Data columns (total 3 columns):
skey 2 non-null int
street_name 2 non-null str
street_shape 2 non-null str
dtypes: str(2), int(1)
>>>
>>> df.info(verbose=False)
<class 'teradataml.geospatial.geodataframe.GeoDataFrame'>
Data columns (total 3 columns):
dtypes: str(2), int(1)
>>>