Skip to content

Commit

Permalink
Avoid Styler.hide_index and render duplicated in Pandas 1.4 (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu authored Jul 31, 2023
1 parent 28f7fa3 commit 43060f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_memlab/line_profiler/line_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ def _repr_html_(self):
.set_table_styles([{
'selector': 'th',
'props': [('text-align', 'left')]}])
.hide_index()
.render())
.hide(axis=0)
.to_html())

template = '<h3><span style="font-family: monospace">{q}</span></h3><div>{c}</div>'
return '\n'.join(template.format(q=q, c=c) for q, c in html.items())

0 comments on commit 43060f5

Please sign in to comment.