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
import numpy as np
import pandas as pd
series = pd.Series([np.nan, np.nan, 1, 1, 2, 2, 3, 3, 4, 4])
bins = pd.cut(series.dropna(), 4)
# this works
series.dropna().groupby(bins).mean()
# but this results in:
# [1] 42448 segmentation fault python
series.groupby(bins).mean()
So, I can see why trying to group a series with bins based on a different (trimmed) series can't really work and don't consider that to be a bug, but it might be nice if pandas threw a proper error message instead of segfaulting.
The text was updated successfully, but these errors were encountered:
I'm not sure what I like more, the same-day pull request or the way you were able to summarize the issue in ten words while I was grasping to find the right way to explain things. Anyway, \o/
So, I can see why trying to group a series with bins based on a different (trimmed) series can't really work and don't consider that to be a bug, but it might be nice if
pandas
threw a proper error message instead of segfaulting.The text was updated successfully, but these errors were encountered: