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
while investing #1005 I got an unrelated error with aggtarget. I think it only happens for super small dataframes so probably not important but I'm opening an issue to keep track of it in case it pops up again anyway
Traceback (most recent call last):
File "/home/jerome/workspace/scratch/2024/07/scratch.py", line 8, in <module>
AggTarget(main_key="a", operation=["hist(2)"]).fit_transform(X, y)
File "/home/jerome/.virtualenvs/skrub/lib/python3.10/site-packages/sklearn/utils/_set_output.py", line 313, in wrapped
data_to_wrap = f(self, X, *args, **kwargs)
File "/home/jerome/.virtualenvs/skrub/lib/python3.10/site-packages/sklearn/base.py", line 1101, in fit_transform
return self.fit(X, y, **fit_params).transform(X)
File "/home/jerome/workspace/backedup_repositories/skrub/skrub/_agg_joiner.py", line 480, in fit
self.y_ = skrub_px.aggregate(
File "/home/jerome/workspace/backedup_repositories/skrub/skrub/_dataframe/_pandas.py", line 136, in aggregate
serie_group = table.groupby(key)[col_to_agg].value_counts(**kwargs)
File "/home/jerome/.virtualenvs/skrub/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 857, in value_counts
sorter = np.lexsort((out if ascending else -out, left[0]))
ValueError: all keys need to be the same shape
Versions
I can reproduce it with skrub 1.0.0 or the main branch
Traceback (most recent call last):
File "/home/jerome/workspace/scratch/2024/07/value_counts.py", line 4, in <module>
df.groupby('a')['y'].value_counts(bins=[-10., 95., 200.])
File "/home/jerome/.virtualenvs/skrub/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 857, in value_counts
sorter = np.lexsort((out if ascending else -out, left[0]))
ValueError: all keys need to be the same shape
The text was updated successfully, but these errors were encountered:
Describe the bug
while investing #1005 I got an unrelated error with aggtarget. I think it only happens for super small dataframes so probably not important but I'm opening an issue to keep track of it in case it pops up again anyway
Steps/Code to Reproduce
Expected Results
no error
Actual Results
Versions
I can reproduce it with skrub
1.0.0
or the main branchpandas
I guess this is an issue in pandas?
The text was updated successfully, but these errors were encountered: