This option controls the number of rows from the top of a frame to be displayed when the frame’s output is truncated due to the total number of rows exceeding display.max_nrows value.

Parameters¶

return
int

Current head_nrows value. Initially, this option is set to 15.

int
New head_nrows value, should be non-negative.
ValueError
The exception is raised when the new_head_nrows is negative.