Skip to content

pct_change with freq on groupby broken #11811

@bobobo1618

Description

@bobobo1618
>>> pd.__version__
u'0.17.1'
# Column 1 is a date column, column 0 is a text column representing a stock symbol, column 12 is a price
>>> rawdat = pd.read_csv('./data.csv', parse_dates=[1], index_col=[0, 1], usecols=[0, 1, 12])
# Get monthly change in value for each stock symbol
>>> rawdat.groupby(level=0).pct_change(freq='M')
<Empty>
>>> rawdat.groupby(level=0).pct_change()
<Lots of data>
>>> rawdat.loc[['AAPL']].reset_index(level=0, drop=True).pct_change(freq='M')
<Lots of data>

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