max_rows | Display Options | Teradata Python Package - max_rows - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.10
Published
May 2022
Language
English (United States)
Last Update
2022-08-18
dita:mapPath
rsu1641592952675.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage

The max_rows option controls the default value for the head() method of the DataFrame and the number of rows printed from a DataFrame. The default value is 10.

Example: Set the value to 5

>>> display.max_rows = 5
>>> DataFrame('iris')
 
 
               SepalLength  SepalWidth  PetalLength  PetalWidth             Name
primary_index                                                                  
0                      5.1         3.5          1.4         0.2      Iris-setosa
40                     5.0         3.5          1.3         0.3      Iris-setosa
80                     5.5         2.4          3.8         1.1  Iris-versicolor
101                    5.8         2.7          5.1         1.9   Iris-virginica
141                    6.9         3.1          5.1         2.3   Iris-virginica