Wrong number of row in to_latex output for MultiIndex Dataframe · Issue #9778 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
If I try to run this code:
pd.DataFrame.from_dict({
('c1', 0): pd.Series({x: x for x in range(4)}),
('c1', 1): pd.Series({x: x+4 for x in range(4)}),
('c2', 0): pd.Series({x: x for x in range(4)}),
('c2', 1): pd.Series({x: x+4 for x in range(4)}),
('c3', 0): pd.Series({x: x for x in range(4)}),
}).T.to_latex()
The result is 2 rows instead of 5 in the latex output. If I use a csv it works.
I'm running pandas 0.16.0 under python 2.7 on Mac OS X 10.10