Skip to content

Commit fa4a67a

Browse files
committed
Fixes issue pandas-dev#27563
1 parent def01cf commit fa4a67a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pandas/core/config_init.py

+2
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ def is_terminal():
343343
)
344344
cf.register_option("max_categories", 8, pc_max_categories_doc, validator=is_int)
345345
cf.register_option("max_colwidth", 50, max_colwidth_doc, validator=is_int)
346+
cf.register_option("repeating_row_index", 0, validator=is_int)
347+
346348
if is_terminal():
347349
max_cols = 0 # automatically determine optimal number of columns
348350
else:

pandas/io/formats/html.py

+4
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ def _write_regular_rows(
420420
tags=None,
421421
nindex_levels=self.row_levels,
422422
)
423+
j = get_option("display.repeating_row_index")
424+
425+
if j > 0 and i % j == 0 and i > 0 :
426+
row.append(self._write_col_header(indent))
423427

424428
row = []
425429
if self.fmt.index:

0 commit comments

Comments
 (0)