8000 GroupBy plots do not use appropriate xtick values · Issue #6272 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content
GroupBy plots do not use appropriate xtick values #6272
Closed
@fonnesbeck

Description

@fonnesbeck

I have a straightforward little DataFrame that I want to group and plot.

    yearID  Krate   teamID
37197    2006    0.115385    COL
37890    2007    0.235294    COL
38621    2008    0.242595    COL
39320    2009    0.264352    COL
40028    2010    0.279373    COL
40738    2011    0.276347    COL
40739    2011    0.275556    CLE
41463    2012    0.225908    CLE
42183    2013    0.307448    CLE

However, when I do so, the resulting plot does not put the proper values on the x-axis.

jimenez.groupby('teamID').plot(x='yearID', y='Krate', grid=False)

unknown

I have confirmed that yearID is int64.

Running Pandas '0.13.0-395-gef55e60' on OS X 10.9.1 (Python 2.7.5).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0