Skip to content

Commit c250e6b

Browse files
committed
Fix test_resample_getitem.
Details are in pandas-dev/pandas#44944
1 parent 10b970e commit c250e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modin/pandas/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3221,7 +3221,7 @@ def _get_new_resampler(key):
32213221
if isinstance(
32223222
key, (list, tuple, Series, pandas.Series, pandas.Index, np.ndarray)
32233223
):
3224-
if len(self._dataframe.columns.intersection(key)) != len(key):
3224+
if len(self._dataframe.columns.intersection(key)) != len(set(key)):
32253225
missed_keys = list(set(key).difference(self._dataframe.columns))
32263226
raise KeyError(f"Columns not found: {str(sorted(missed_keys))[1:-1]}")
32273227
return _get_new_resampler(list(key))

0 commit comments

Comments
 (0)