Closed
Description
We have some failures on CPython master (commit c6e5c1123bac6cbb4c85265155af5349dcea522e to be precise):
===================================================================================== FAILURES =====================================================================================
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/util/testing.py:394: AssertionError: Series Expected type <class 'pandas.core.series.Series'>, found <class 'pandas.core.arrays.datetimes.DatetimeArray'> instead
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/hashtable_class_helper.pxi:1614: KeyError: 'one'
pandas/_libs/groupby_helper.pxi:1014: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:951: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:1014: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:951: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:1014: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:951: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:1014: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:951: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:1014: TypeError: Expected dict, got int
pandas/_libs/groupby_helper.pxi:1014: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:750: TypeError: Expected dict, got int
pandas/_libs/join.pyx:819: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
pandas/_libs/join.pyx:681: TypeError: Expected dict, got int
================================================================================= warnings summary =================================================================================
pandas/tests/frame/test_alter_axes.py:241
pandas/tests/frame/test_alter_axes.py:241
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/frame/test_alter_axes.py:241: SyntaxWarning: "is" with a literal. Did you mean "=="?
False if (keys[0] is "A" and keys[1] is "A") else drop # noqa: F632
pandas/tests/frame/test_missing.py::TestDataFrameMissingData::test_fillna_categorical_nan
/Users/taugspurger/sandbox/cpython-dev/numpy/numpy/lib/nanfunctions.py:1114: RuntimeWarning: All-NaN slice encountered
r, k = function_base._ureduce(a, func=_nanmedian, axis=axis, out=out,
pandas/tests/groupby/test_filters.py::test_filter_and_transform_with_non_unique_float_index
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/core/indexes/base.py:2821: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
return self._engine.get_loc(key)
pandas/tests/io/json/test_json_table_schema.py: 12 tests with warnings
pandas/tests/io/json/test_pandas.py: 3 tests with warnings
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/io/json/_json.py:148: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
return dumps(
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1324: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(ts, iso_dates=True) == exp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1326: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(dt, iso_dates=True) == exp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1329: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(ts, iso_dates=True) == exp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1331: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(dt, iso_dates=True) == exp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1334: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(ts, iso_dates=True) == exp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1336: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(dt, iso_dates=True) == exp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1353: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
result = dumps(df, iso_dates=True)
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1361: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(df, iso_dates=True) == dfexp
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc
pandas/tests/io/json/test_pandas.py::TestPandasContainer::test_tz_range_is_utc
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/tests/io/json/test_pandas.py:1368: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
assert dumps(df, iso_dates=True) == dfexp
pandas/tests/sparse/test_pivot.py::TestPivotTable::test_pivot_table
/Users/taugspurger/sandbox/cpython-dev/pandas/pandas/core/arrays/sparse.py:1645: RuntimeWarning: invalid value encountered in double_scalars
return sp_sum / ct
-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================================================================= short test summary info ==============================================================================
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[True-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[True-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[False-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[False-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timezone_selection - AssertionError: Series Expected type <class 'pandas.core.series.Series'>, fo...
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-False-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-False-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-False-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-False-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/aggregate/test_cython.py::test__cython_agg_general[min-amin] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test__cython_agg_general[max-amax] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test_cython_agg_empty_buckets[True-min-amin] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test_cython_agg_empty_buckets[True-max-amax] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test_cython_agg_empty_buckets[False-min-amin] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test_cython_agg_empty_buckets[False-max-amax] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test_cython_agg_empty_buckets[None-min-amin] - TypeError: Expected dict, got int
FAILED pandas/tests/groupby/aggregate/test_cython.py::test_cython_agg_empty_buckets[None-max-amax] - TypeError: Expected dict, got int
FAILED pandas/tests/resample/test_datetime_index.py::test_custom_grouper - TypeError: Expected dict, got int
FAILED pandas/tests/resample/test_datetime_index.py::test_resample_frame_basic - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_examples2 - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic_categorical - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic_left_index - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic_right_index - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic_left_index_right_index - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic_left_by_right_by - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_missing_right_by - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_multiby - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_multiby_heterogeneous_types - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_multiby_indexed - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_basic2 - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_with_duplicates - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_valid_tolerance - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_non_sorted - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_tolerance[pd.Timedelta] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_index_tolerance - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_allow_exact_matches - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_allow_exact_matches_and_tolerance - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_forward_by - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_nearest_by - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_by_int - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[float] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[float32] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[float64] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[uint8] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[uint16] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[uint32] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[uint64] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[int] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[int8] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[int16] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[int32] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_specialized_type_by_int[int64] - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_on_float_by_int - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_merge_by_col_tz_aware - TypeError: Expected dict, got int
FAILED pandas/tests/reshape/merge/test_merge_asof.py::TestAsOfMerge::test_by_mixed_tz_aware - TypeError: Expected dict, got int
======================================== 60 failed, 54929 passed, 3971 skipped, 832 xfailed, 10 xpassed, 32 warnings in 1229.76s (0:20:29) =========================================
Short tracebacks in the details
===================================================================================== FAILURES =====================================================================================
______________________________________________________________ TestMultiLevel.test_frame_group_ops[True-True-1-1-min] ______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/test_multilevel.py:1031: in test_frame_group_ops
rightside = getattr(frame, op)(level=level, axis=axis, skipna=skipna)
pandas/core/generic.py:11600: in stat_func
return self._agg_by_level(name, axis=axis, level=level, skipna=skipna)
pandas/core/generic.py:10415: in _agg_by_level
return getattr(grouped, name)(**kwargs)
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ TestMultiLevel.test_frame_group_ops[True-True-1-1-max] ______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/test_multilevel.py:1031: in test_frame_group_ops
rightside = getattr(frame, op)(level=level, axis=axis, skipna=skipna)
pandas/core/generic.py:11600: in stat_func
return self._agg_by_level(name, axis=axis, level=level, skipna=skipna)
pandas/core/generic.py:10415: in _agg_by_level
return getattr(grouped, name)(**kwargs)
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
_____________________________________________________________ TestMultiLevel.test_frame_group_ops[False-True-1-1-min] ______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/test_multilevel.py:1031: in test_frame_group_ops
rightside = getattr(frame, op)(level=level, axis=axis, skipna=skipna)
pandas/core/generic.py:11600: in stat_func
return self._agg_by_level(name, axis=axis, level=level, skipna=skipna)
pandas/core/generic.py:10415: in _agg_by_level
return getattr(grouped, name)(**kwargs)
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
_____________________________________________________________ TestMultiLevel.test_frame_group_ops[False-True-1-1-max] ______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/test_multilevel.py:1031: in test_frame_group_ops
rightside = getattr(frame, op)(level=level, axis=axis, skipna=skipna)
pandas/core/generic.py:11600: in stat_func
return self._agg_by_level(name, axis=axis, level=level, skipna=skipna)
pandas/core/generic.py:10415: in _agg_by_level
return getattr(grouped, name)(**kwargs)
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
_________________________________________________________________ TestGroupBy.test_groupby_with_timezone_selection _________________________________________________________________
pandas/tests/groupby/test_timegrouper.py:673: in test_groupby_with_timezone_selection
tm.assert_series_equal(df1, df2)
pandas/util/testing.py:394: in _check_isinstance
raise AssertionError(
E AssertionError: Series Expected type <class 'pandas.core.series.Series'>, found <class 'pandas.core.arrays.datetimes.DatetimeArray'> instead
_______________________________________________________________ test_regression_whitelist_methods[True-True-1-1-min] _______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
_______________________________________________________________ test_regression_whitelist_methods[True-True-1-1-max] _______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ test_regression_whitelist_methods[True-False-1-1-min] _______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ test_regression_whitelist_methods[True-False-1-1-max] _______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ test_regression_whitelist_methods[False-True-1-1-min] _______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ test_regression_whitelist_methods[False-True-1-1-max] _______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ test_regression_whitelist_methods[False-False-1-1-min] ______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
______________________________________________________________ test_regression_whitelist_methods[False-False-1-1-max] ______________________________________________________________
pandas/core/indexes/base.py:2821: in get_loc
return self._engine.get_loc(key)
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
During handling of the above exception, another exception occurred:
pandas/tests/groupby/test_whitelist.py:209: in test_regression_whitelist_methods
result = getattr(grouped, op)()
pandas/core/groupby/groupby.py:1383: in f
result[col] = self._try_cast(result[col], self.obj[col])
pandas/core/frame.py:2846: in __getitem__
return self._getitem_multilevel(key)
pandas/core/frame.py:2896: in _getitem_multilevel
loc = self.columns.get_loc(key)
pandas/core/indexes/multi.py:2662: in get_loc
loc = self._get_level_indexer(key, level=0)
pandas/core/indexes/multi.py:2928: in _get_level_indexer
code = level_index.get_loc(key)
pandas/core/indexes/base.py:2823: in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
pandas/_libs/index.pyx:103: in pandas._libs.index.IndexEngine.get_loc
cpdef get_loc(self, object val):
pandas/_libs/index.pyx:127: in pandas._libs.index.IndexEngine.get_loc
return self.mapping.get_item(val)
pandas/_libs/hashtable_class_helper.pxi:1607: in pandas._libs.hashtable.PyObjectHashTable.get_item
cpdef get_item(self, object val):
pandas/_libs/hashtable_class_helper.pxi:1614: in pandas._libs.hashtable.PyObjectHashTable.get_item
raise KeyError(val)
E KeyError: 'one'
============================================================================= short test summary info ==============================================================================
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[True-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[True-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[False-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/test_multilevel.py::TestMultiLevel::test_frame_group_ops[False-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timezone_selection - AssertionError: Series Expected type <class 'pandas.core.series.Series'>, fo...
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-False-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[True-False-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-True-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-True-1-1-max] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-False-1-1-min] - KeyError: 'one'
FAILED pandas/tests/groupby/test_whitelist.py::test_regression_whitelist_methods[False-False-1-1-max] - KeyError: 'one'
Metadata
Metadata
Assignees
Labels
No labels