8000 ENH: to_latex(): add posibility to define the latex environment (instead of table) · Issue #37443 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content
10000
ENH: to_latex(): add posibility to define the latex environment (instead of table) #37443
Closed
@horror-vacui

Description

@horror-vacui

Is your feature request related to a problem?

I wish pandas's to_latex() function could create table* environment instead of table for wide tables. The generated table sometimes does not fit into one column of a two column document.

Describe the solution you'd like

A parameter where one can define the name of the environment. E.g. df.to_latex(env="foobar*") to generate: \begin{foobar*} table stuff here \end{foobar*}.

API breaking implications

One more parameter.

Describe alternatives you've considered

Write a code, which replaces begin{table} and end{table} to the desired environment. (table* in most of the cases)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closing CandidateMay be closeable, needs more eyeballsEnhancementIO LaTeXto_latexStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0