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 does not present or pass through column_format to formatter #9402

Closed
andrewbolster opened this issue Feb 3, 2015 · 1 comment
Labels
IO LaTeX to_latex
Milestone

Comments

@andrewbolster
Copy link

Expected Behaviour

column_format keyword arguments to df.to_latex should honour the relevant options available and implemented in DataFrameFormatter and it's to_latex method

The reason why this is annoying is that default frmt behaviour is to justify based on the column datatype. For cases where the index column/first column is numeric, these columns get right-aligned, which looks horrible.

Versions

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-27-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8

pandas: 0.15.1
nose: 1.3.4
Cython: 0.20.2
numpy: 1.9.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 2.3.1
sphinx: 1.2.2
patsy: 0.3.0
dateutil: 2.3
pytz: 2014.10
bottleneck: None
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.4.2
openpyxl: 1.8.6
xlrd: None
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.3.5
bs4: 4.3.2
html5lib: None
httplib2: 0.9
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
@andrewbolster andrewbolster changed the title DataFrame to_latex does not present or pass through column_format or justify to formatter DataFrame to_latex does not present or pass through column_format to formatter Feb 3, 2015
@jreback jreback added the Output-Formatting __repr__ of pandas objects, to_string label Feb 4, 2015
@jreback jreback added this to the 0.16.0 milestone Feb 4, 2015
@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 5, 2015
andrewbolster added a commit to andrewbolster/pandas that referenced this issue Jul 29, 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.0, Next Major Release Aug 31, 2015
jreback pushed a commit that referenced this issue Aug 31, 2015
…rmatter, #9402

removed now irrelevant TODO comment

release notes + some refs
@jreback
Copy link
Contributor

jreback commented Aug 31, 2015

closed by #10944

@jreback jreback closed this as completed Aug 31, 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
3 participants