Skip to content

BUG: styler.to_latex does hide rows after hide_index([subset]) #43637

Closed
@attack68

Description

@attack68

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the master branch of pandas.

Reproducible Example

>>> df = DataFrame([[1], [2]])
>>> print(df.style.hide_index([0]).to_latex())
\begin{tabular}{lr}
 & 0 \\
 \\
1 & 2 \\
\end{tabular}

Issue Description

its the header cells that render as empty spaces creating an unwanted line.

Expected Behavior

no unwanted line.

Installed Versions

master

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIO LaTeXto_latexStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions