datatable.options.display.head_nrows

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.

new_head_nrows
int

New head_nrows value, should be non-negative.

except
ValueError

The exception is raised when the new_head_nrows is negative.