You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of other posts (e.g. #14484#16718#17959 etc) with bugs in the to_latex() function so this might have a common source.
The midrule location is wrong when the index has a name but index_names=False. This bug shows up even in simple dataframes without multi-indexing like the other bugs open at the moment:
import pandas as pd
import numpy as np
df = pd.DataFrame(data=np.random.randn(5,3))
df.index.name = 'foo'
print df.to_latex(index_names=False)
There are a lot of other posts (e.g. #14484 #16718 #17959 etc) with bugs in the to_latex() function so this might have a common source.
The midrule location is wrong when the index has a name but index_names=False. This bug shows up even in simple dataframes without multi-indexing like the other bugs open at the moment:
gives
It should be
Also, the width of {} is ignored for the space padding in the index column, which is a bit annoying.
This is from:
Python 2.7.13
numpy==1.13.1
pandas==0.20.3
The text was updated successfully, but these errors were encountered: