-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: to_latex(): add posibility to define the latex environment (instead of table) #37443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why not just |
I would be happy to use something like that, but the snippet you wrote, does not work with the latest release (1.1.3).
for
|
You need to not pass buf to get a string, which you can then call
|
I would like to have this functionality, you don't necessarily need a tabular envirionment, it could be a matrix, a pmatrix, or some other environment. Or maybe you don't want any headers at all! |
@jreback there is still no option to allow no environment at all, there are only 2 environments allowed? |
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)
The text was updated successfully, but these errors were encountered: