You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data = {f'col{l}': [np.array([i, j, k, l]) for i in range(11) for j in range(31) for k in range(15)] for l in range(4)}
df = pd.DataFrame(data, index=index)
now this fails: df.iloc[:5001].swifter.groupby(level=0, group_keys=False).apply(lambda x: x)
but succeeds with only 5000 rows.
Hey @davhin , thanks for raising this issue and providing a reproducible example. This is an oversight in my implementation of the groupby apply. I failed to incorporate the level parameter appropriately. I only ensured the by parameter worked. Really appreciative of you finding this. I will work on a patch shortly.
apologies if this counts as a duplicate of #202
setting up the data:
now this fails:
df.iloc[:5001].swifter.groupby(level=0, group_keys=False).apply(lambda x: x)
but succeeds with only 5000 rows.
The text was updated successfully, but these errors were encountered: