Skip to content
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

DataFrame.to_latex() produces an extra rule in some cases #7124

Closed
pzakielarz opened this issue May 14, 2014 · 2 comments
Closed

DataFrame.to_latex() produces an extra rule in some cases #7124

pzakielarz opened this issue May 14, 2014 · 2 comments
Labels
IO LaTeX to_latex
Milestone

Comments

@pzakielarz
Copy link

When a DataFrame with column names is converted to latex, and header=False is passed, the \midrule that normally follows the headers should be removed.

>>> df = pd.DataFrame(np.arange(6).reshape(3,-1), columns=['A', 'B'])
>>> print df.to_latex(header=False)
\begin{tabular}{lrr}
\toprule
0 &  0 &  1 \\
\midrule
1 &  2 &  3 \\
2 &  4 &  5 \\
\bottomrule
\end{tabular}
>>> pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Darwin
OS-release: 12.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8

pandas: 0.13.1
Cython: 0.20.1
numpy: 1.8.0
scipy: 0.13.3
statsmodels: None
IPython: 2.0.0
sphinx: 1.2.2
patsy: None
scikits.timeseries: None
dateutil: 2.2
pytz: 2013.9
bottleneck: 0.6.0
tables: 3.1.1
numexpr: 2.1
matplotlib: 1.3.1
openpyxl: None
xlrd: 0.9.2
xlwt: None
xlsxwriter: None
sqlalchemy: None
lxml: None
bs4: None
html5lib: None
bq: None
apiclient: None
@jreback jreback added Data IO and removed Data IO labels May 14, 2014
@jreback jreback added this to the 0.15.0 milestone May 14, 2014
@jreback
Copy link
Contributor

jreback commented May 14, 2014

@jseabold ?

@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 3, 2015
@jorisvandenbossche jorisvandenbossche added IO LaTeX to_latex and removed Output-Formatting __repr__ of pandas objects, to_string labels Aug 22, 2015
@jreback jreback modified the milestones: 0.17.1, Next Major Release Oct 5, 2015
@jreback
Copy link
Contributor

jreback commented Oct 9, 2015

closed by #11140

@jreback jreback closed this as completed Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO LaTeX to_latex
Projects
None yet
Development

No branches or pull requests

3 participants