BinGrouper breaks on DataFrame.transform #8430

Closed
dalejung opened this Issue Sep 30, 2014 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

dalejung commented Sep 30, 2014

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

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 added this to the 0.15.0 milestone Oct 1, 2014

jreback closed this in #8434 Oct 1, 2014

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