Skip to content

BinGrouper breaks on DataFrame.transform #8430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dalejung opened this issue Sep 30, 2014 · 2 comments · Fixed by #8434
Closed

BinGrouper breaks on DataFrame.transform #8430

dalejung opened this issue Sep 30, 2014 · 2 comments · Fixed by #8434
Milestone

Comments

@dalejung
Copy link
Contributor

import pandas as pd
import numpy as np
from pandas.tseries.resample import TimeGrouper
import pandas.util.testing as tm

df = tm.makeTimeDataFrame()
tg = TimeGrouper('M')

func = lambda x: (x - 1)
df.groupby(tg).transform(func)
/externals/pandas/pandas/core/groupby.py in _get_compressed_labels(self)
   1360     def _get_compressed_labels(self):
-> 1361         all_labels = [ping.labels for ping in self.groupings]
   1362         if self._overflow_possible:

TypeError: 'NoneType' object is not iterable

Seems related to #8049 as that check group_info which errors on BinGrouper since there are no groupings

@jreback
Copy link
Contributor

jreback commented Sep 30, 2014

hmm breaking on the heuristic to figure out if we have the right label set

I can take a stab if u would like
I prob will look later

@jreback
Copy link
Contributor

jreback commented Oct 1, 2014

merged in
pls try and report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants