Skip to content

Wrong number of row in to_latex output for MultiIndex Dataframe #9778

Closed
@frubino

Description

@frubino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions