python3.14-pandas-stubs-2.3.3.260113
x86_64-linux.nixos-nixbox
· build #109
· raw
1Sourcing python-remove-tests-dir-hook2Sourcing python-catch-conflicts-hook.sh3Sourcing python-remove-bin-bytecode-hook.sh4Sourcing pypa-build-hook5Using pypaBuildPhase6Sourcing python-runtime-deps-check-hook7Using pythonRuntimeDepsCheckHook8Sourcing pypa-install-hook9Using pypaInstallPhase10Sourcing python-imports-check-hook.sh11Using pythonImportsCheckPhase12Sourcing python-namespaces-hook13Sourcing python-catch-conflicts-hook.sh14Sourcing pytest-check-hook15Using pytestCheckPhase
unpackPhase
16unpacking source archive /nix/store/h5bjm1x182swkjyndl0qmnhgbnxwwvii-source17source root is source18setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/utils.py"configurePhase
19no configure script, doing nothingbuildPhase
20Executing pypaBuildPhase21Creating a wheel...22pypa build flags: --no-isolation --outdir dist/ --wheel23* Getting build dependencies for wheel...24* Building wheel...25Successfully built pandas_stubs-2.3.3.260113-py3-none-any.whl26Finished creating a wheel...27Finished executing pypaBuildPhasepythonRuntimeDepsCheckHook
28Executing pythonRuntimeDepsCheck29Checking runtime dependencies for pandas_stubs-2.3.3.260113-py3-none-any.whl30Finished executing pythonRuntimeDepsCheckinstallPhase
31Executing pypaInstallPhase32Successfully installed pandas_stubs-2.3.3.260113-py3-none-any.whl33Finished executing pypaInstallPhasepythonOutputDistPhase
34Executing pythonOutputDistPhase35Finished executing pythonOutputDistPhasefixupPhase
36shrinking RPATHs of ELF executables and libraries in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.26011337checking for references to /build/ in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.260113...38patching script interpreter paths in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.26011339stripping (with command strip and flags -S -p) in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.260113/lib40shrinking RPATHs of ELF executables and libraries in /nix/store/ff376ykairxnv6mgjjixp9pychmcqxl8-python3.14-pandas-stubs-2.3.3.260113-dist41checking for references to /build/ in /nix/store/ff376ykairxnv6mgjjixp9pychmcqxl8-python3.14-pandas-stubs-2.3.3.260113-dist...42patching script interpreter paths in /nix/store/ff376ykairxnv6mgjjixp9pychmcqxl8-python3.14-pandas-stubs-2.3.3.260113-dist43Executing pythonRemoveTestsDir44Finished executing pythonRemoveTestsDirinstallCheckPhase
45no Makefile or custom installCheckPhase, doing nothingpythonImportsCheckPhase
46Executing pythonImportsCheckPhase47Check whether the following modules can be imported: pandaspytestCheckPhase
48Executing pytestCheckPhase49pytest flags: -m pytest -k not\ \(test_all_read_without_lxml_dtype_backend\)\ and\ not\ \(test_orc\)\ and\ not\ \(test_plotting\)\ and\ not\ \(test_spss\)\ and\ not\ \(test_show_version\)\ and\ not\ \(test_timedelta_cmp\)\ and\ not\ \(test_timestamp_cmp\)50============================= test session starts ==============================51platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.052rootdir: /build/source53configfile: pyproject.toml54collected 2252 items / 46 deselected / 2206 selected 5556tests/arrays/test_arrow_extension_array.py ....... [ 0%]57tests/arrays/test_arrow_string_array.py ........... [ 0%]58tests/arrays/test_base_string_array.py ................................. [ 2%]59......................................................... [ 4%]60tests/arrays/test_boolean_array.py ..................................... [ 6%]61.............................................. [ 8%]62tests/arrays/test_cumul.py . [ 8%]63tests/arrays/test_extension_array.py . [ 8%]64tests/arrays/test_floating_array.py .................................... [ 10%]65................................................ [ 12%]66tests/arrays/test_integer_array.py ..................................... [ 14%]67....................................................... [ 16%]68tests/arrays/test_numpy_extension_array.py ......FFF...FFFFFFFFF........ [ 18%]69........................................................................ [ 21%]70......................................... [ 23%]71tests/arrays/test_string_array.py ........... [ 23%]72tests/frame/test_frame.py .............................................. [ 25%]73............FFF....................s.................................... [ 29%]74......................................... [ 30%]75tests/frame/test_groupby.py .................... [ 31%]76tests/frame/test_indexing.py ........................................... [ 33%]77...... [ 33%]78tests/indexes/bool/test_add.py .... [ 34%]79tests/indexes/bool/test_mul.py .... [ 34%]80tests/indexes/bool/test_sub.py .... [ 34%]81tests/indexes/bool/test_truediv.py .... [ 34%]82tests/indexes/complex/test_add.py .... [ 34%]83tests/indexes/complex/test_mul.py .... [ 35%]84tests/indexes/complex/test_sub.py .... [ 35%]85tests/indexes/complex/test_truediv.py .... [ 35%]86tests/indexes/float/test_add.py .... [ 35%]87tests/indexes/float/test_dtypes.py ..................................... [ 37%]88................ [ 38%]89tests/indexes/float/test_floordiv.py .... [ 38%]90tests/indexes/float/test_mul.py .... [ 38%]91tests/indexes/float/test_sub.py .... [ 38%]92tests/indexes/float/test_truediv.py ..... [ 38%]93tests/indexes/int/test_add.py .... [ 38%]94tests/indexes/int/test_floordiv.py .... [ 39%]95tests/indexes/int/test_mul.py .... [ 39%]96tests/indexes/int/test_sub.py .... [ 39%]97tests/indexes/int/test_truediv.py ..... [ 39%]98tests/indexes/str/test_add.py .... [ 39%]99tests/indexes/str/test_mul.py .... [ 40%]100tests/indexes/test_add.py ..... [ 40%]101tests/indexes/test_categoricalindex.py .... [ 40%]102tests/indexes/test_datetime_index.py ........ [ 40%]103tests/indexes/test_floordiv.py .... [ 41%]104tests/indexes/test_indexes.py .......................................... [ 42%]105.............................................. [ 45%]106tests/indexes/test_mul.py ..... [ 45%]107tests/indexes/test_multi_indexes.py ............ [ 45%]108tests/indexes/test_rangeindex.py ....... [ 46%]109tests/indexes/test_sub.py ..... [ 46%]110tests/indexes/test_truediv.py ....... [ 46%]111tests/indexes/timedeltaindex/test_floordiv.py ..... [ 46%]112tests/indexes/timedeltaindex/test_mul.py .... [ 47%]113tests/indexes/timedeltaindex/test_truediv.py ..... [ 47%]114tests/scalars/test_scalars.py ....F........................ [ 48%]115tests/scalars/timedelta/test_arithmetic.py . [ 48%]116tests/series/bool/test_add.py ..... [ 48%]117tests/series/bool/test_dtypes.py .......... [ 49%]118tests/series/bool/test_mul.py ..... [ 49%]119tests/series/bool/test_sub.py ..... [ 49%]120tests/series/bool/test_truediv.py ..... [ 50%]121tests/series/bytes/test_dtypes.py ...... [ 50%]122tests/series/categorical/test_dtypes.py .. [ 50%]123tests/series/complex/test_add.py ..... [ 50%]124tests/series/complex/test_dtypes.py ................. [ 51%]125tests/series/complex/test_mul.py ..... [ 51%]126tests/series/complex/test_sub.py ..... [ 51%]127tests/series/complex/test_truediv.py ..... [ 52%]128tests/series/float/test_add.py ..... [ 52%]129tests/series/float/test_dtypes.py ...................................... [ 54%]130........................... [ 55%]131tests/series/float/test_floordiv.py ..... [ 55%]132tests/series/float/test_mul.py ..... [ 55%]133tests/series/float/test_sub.py ..... [ 55%]134tests/series/float/test_truediv.py ...... [ 56%]135tests/series/int/test_add.py ..... [ 56%]136tests/series/int/test_dtypes.py ........................................ [ 58%]137...................................... [ 59%]138tests/series/int/test_floordiv.py ..... [ 60%]139tests/series/int/test_mul.py ..... [ 60%]140tests/series/int/test_sub.py ..... [ 60%]141tests/series/int/test_truediv.py ...... [ 60%]142tests/series/object/test_dtypes.py ..... [ 61%]143tests/series/period/test_sub.py . [ 61%]144tests/series/str/test_add.py ..... [ 61%]145tests/series/str/test_dtypes.py ........... [ 61%]146tests/series/str/test_mul.py ..... [ 62%]147tests/series/test_add.py ...... [ 62%]148tests/series/test_agg.py ....F... [ 62%]149tests/series/test_cumul.py ........ [ 63%]150tests/series/test_floordiv.py ..... [ 63%]151tests/series/test_indexing.py ..................... [ 64%]152tests/series/test_mul.py ...... [ 64%]153tests/series/test_properties.py .. [ 64%]154tests/series/test_series.py ............................................ [ 66%]155........................................................................ [ 69%]156...................................... [ 71%]157tests/series/test_sub.py ......... [ 72%]158tests/series/test_truediv.py ........ [ 72%]159tests/series/timedelta/test_add.py ....... [ 72%]160tests/series/timedelta/test_dtypes.py .................................. [ 74%]161............ [ 74%]162tests/series/timedelta/test_floordiv.py ...... [ 75%]163tests/series/timedelta/test_mul.py ..... [ 75%]164tests/series/timedelta/test_sub.py ....... [ 75%]165tests/series/timedelta/test_truediv.py ...... [ 75%]166tests/series/timestamp/test_add.py ....... [ 76%]167tests/series/timestamp/test_dtypes.py .................................. [ 77%]168.................. [ 78%]169tests/series/timestamp/test_sub.py ....... [ 78%]170tests/series/void/test_dtypes.py ... [ 79%]171tests/test_api_types.py ................................... [ 80%]172tests/test_api_typing.py .................. [ 81%]173tests/test_config.py ...... [ 81%]174tests/test_dtypes.py .....F......... [ 82%]175tests/test_errors.py .........................s............ [ 84%]176tests/test_extension.py ..... [ 84%]177tests/test_groupby.py .............. [ 84%]178tests/test_holidays.py . [ 85%]179tests/test_internal.py . [ 85%]180tests/test_interval.py ..... [ 85%]181tests/test_interval_index.py ...... [ 85%]182tests/test_io.py ...........ss..sssss................................... [ 88%]183....s............ [ 88%]184tests/test_merge.py . [ 88%]185tests/test_natype.py . [ 88%]186tests/test_pandas.py ......F........................FFF. [ 90%]187tests/test_resampler.py ............................. [ 91%]188tests/test_string_accessors.py .................... [ 92%]189tests/test_styler.py ............................ [ 94%]190tests/test_testing.py .. [ 94%]191tests/test_timefuncs.py .......................................F........ [ 96%]192...... [ 96%]193tests/test_typing.py ................................................... [ 98%]194 [ 98%]195tests/test_utility.py ... [ 99%]196tests/test_windowing.py ...................... [100%]197198=================================== FAILURES ===================================199_______________ test_construction_sequence[missing_values2-list] _______________200201missing_values = (NaT,), typ = <class 'list'>202203 @pytest.mark.parametrize("typ", [list, tuple, UserList])204 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))205 def test_construction_sequence(206 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]207 ) -> None:208 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception209 if missing_values[-1] is pd.NaT:210 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray211> check(pd.array(typ(missing_values)), expected_type)212E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'213214tests/arrays/test_numpy_extension_array.py:44: RuntimeError215______________ test_construction_sequence[missing_values2-tuple] _______________216217missing_values = (NaT,), typ = <class 'tuple'>218219 @pytest.mark.parametrize("typ", [list, tuple, UserList])220 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))221 def test_construction_sequence(222 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]223 ) -> None:224 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception225 if missing_values[-1] is pd.NaT:226 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray227> check(pd.array(typ(missing_values)), expected_type)228E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'229230tests/arrays/test_numpy_extension_array.py:44: RuntimeError231_____________ test_construction_sequence[missing_values2-UserList] _____________232233missing_values = (NaT,), typ = <class 'collections.UserList'>234235 @pytest.mark.parametrize("typ", [list, tuple, UserList])236 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))237 def test_construction_sequence(238 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]239 ) -> None:240 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception241 if missing_values[-1] is pd.NaT:242 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray243> check(pd.array(typ(missing_values)), expected_type)244E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'245246tests/arrays/test_numpy_extension_array.py:44: RuntimeError247_______________ test_construction_sequence[missing_values4-list] _______________248249missing_values = (None, NaT), typ = <class 'list'>250251 @pytest.mark.parametrize("typ", [list, tuple, UserList])252 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))253 def test_construction_sequence(254 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]255 ) -> None:256 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception257 if missing_values[-1] is pd.NaT:258 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray259> check(pd.array(typ(missing_values)), expected_type)260E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'261262tests/arrays/test_numpy_extension_array.py:44: RuntimeError263______________ test_construction_sequence[missing_values4-tuple] _______________264265missing_values = (None, NaT), typ = <class 'tuple'>266267 @pytest.mark.parametrize("typ", [list, tuple, UserList])268 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))269 def test_construction_sequence(270 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]271 ) -> None:272 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception273 if missing_values[-1] is pd.NaT:274 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray275> check(pd.array(typ(missing_values)), expected_type)276E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'277278tests/arrays/test_numpy_extension_array.py:44: RuntimeError279_____________ test_construction_sequence[missing_values4-UserList] _____________280281missing_values = (None, NaT), typ = <class 'collections.UserList'>282283 @pytest.mark.parametrize("typ", [list, tuple, UserList])284 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))285 def test_construction_sequence(286 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]287 ) -> None:288 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception289 if missing_values[-1] is pd.NaT:290 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray291> check(pd.array(typ(missing_values)), expected_type)292E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'293294tests/arrays/test_numpy_extension_array.py:44: RuntimeError295_______________ test_construction_sequence[missing_values5-list] _______________296297missing_values = (<NA>, NaT), typ = <class 'list'>298299 @pytest.mark.parametrize("typ", [list, tuple, UserList])300 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))301 def test_construction_sequence(302 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]303 ) -> None:304 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception305 if missing_values[-1] is pd.NaT:306 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray307> check(pd.array(typ(missing_values)), expected_type)308E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'309310tests/arrays/test_numpy_extension_array.py:44: RuntimeError311______________ test_construction_sequence[missing_values5-tuple] _______________312313missing_values = (<NA>, NaT), typ = <class 'tuple'>314315 @pytest.mark.parametrize("typ", [list, tuple, UserList])316 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))317 def test_construction_sequence(318 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]319 ) -> None:320 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception321 if missing_values[-1] is pd.NaT:322 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray323> check(pd.array(typ(missing_values)), expected_type)324E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'325326tests/arrays/test_numpy_extension_array.py:44: RuntimeError327_____________ test_construction_sequence[missing_values5-UserList] _____________328329missing_values = (<NA>, NaT), typ = <class 'collections.UserList'>330331 @pytest.mark.parametrize("typ", [list, tuple, UserList])332 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))333 def test_construction_sequence(334 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]335 ) -> None:336 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception337 if missing_values[-1] is pd.NaT:338 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray339> check(pd.array(typ(missing_values)), expected_type)340E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'341342tests/arrays/test_numpy_extension_array.py:44: RuntimeError343_______________ test_construction_sequence[missing_values6-list] _______________344345missing_values = (None, <NA>, NaT), typ = <class 'list'>346347 @pytest.mark.parametrize("typ", [list, tuple, UserList])348 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))349 def test_construction_sequence(350 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]351 ) -> None:352 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception353 if missing_values[-1] is pd.NaT:354 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray355> check(pd.array(typ(missing_values)), expected_type)356E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'357358tests/arrays/test_numpy_extension_array.py:44: RuntimeError359______________ test_construction_sequence[missing_values6-tuple] _______________360361missing_values = (None, <NA>, NaT), typ = <class 'tuple'>362363 @pytest.mark.parametrize("typ", [list, tuple, UserList])364 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))365 def test_construction_sequence(366 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]367 ) -> None:368 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception369 if missing_values[-1] is pd.NaT:370 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray371> check(pd.array(typ(missing_values)), expected_type)372E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'373374tests/arrays/test_numpy_extension_array.py:44: RuntimeError375_____________ test_construction_sequence[missing_values6-UserList] _____________376377missing_values = (None, <NA>, NaT), typ = <class 'collections.UserList'>378379 @pytest.mark.parametrize("typ", [list, tuple, UserList])380 @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1))381 def test_construction_sequence(382 missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]]383 ) -> None:384 # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception385 if missing_values[-1] is pd.NaT:386 expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray387> check(pd.array(typ(missing_values)), expected_type)388E RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' but got '<class 'pandas.arrays.DatetimeArray'>'389390tests/arrays/test_numpy_extension_array.py:44: RuntimeError391_____________________ test_pivot_table_aggfunc_numpy_ufunc _____________________392393sample_df = A B C D3940 foo one 1.0 10.03951 foo one 2.0 20.03962 foo two 3.0 30.03973 bar two 4.0 40.03984 bar one 5.0 50.03995 bar one 6.0 60.0400401 def test_pivot_table_aggfunc_numpy_ufunc(sample_df: pd.DataFrame) -> None:402 """Test with df.pivot_table using np.ufunc."""403> with pytest_warns_bounded(404 FutureWarning,405 r"The provided callable.*",406 lower="2.3.0",407 ):408E Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.409E Emitted warnings: [].410411tests/frame/test_frame.py:1782: Failed412________________________ test_pivot_table_aggfunc_list _________________________413414sample_df = A B C D4150 foo one 1.0 10.04161 foo one 2.0 20.04172 foo two 3.0 30.04183 bar two 4.0 40.04194 bar one 5.0 50.04205 bar one 6.0 60.0421422 def test_pivot_table_aggfunc_list(sample_df: pd.DataFrame) -> None:423 """Test with df.pivot_table using list of strings."""424 check(425 assert_type(426 sample_df.pivot_table(427 values="C", index="A", columns="B", aggfunc=["sum", "mean"]428 ),429 pd.DataFrame,430 ),431 pd.DataFrame,432 )433 check(434 assert_type(435 sample_df.pivot_table(436 values="C", index="A", columns="B", aggfunc=["min", "max", "count"]437 ),438 pd.DataFrame,439 ),440 pd.DataFrame,441 )442 check(443 assert_type(444 sample_df.pivot_table(445 values="C", index="A", columns="B", aggfunc=["std", "var", "median"]446 ),447 pd.DataFrame,448 ),449 pd.DataFrame,450 )451 check(452 assert_type(453 sample_df.pivot_table(454 values="C", index="A", columns="B", aggfunc=["first", "last", "nunique"]455 ),456 pd.DataFrame,457 ),458 pd.DataFrame,459 )460 461> with pytest_warns_bounded(462 FutureWarning,463 r"The provided callable.*",464 lower="2.3.0",465 ):466E Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.467E Emitted warnings: [].468469tests/frame/test_frame.py:1936: Failed470________________________ test_pivot_table_aggfunc_dict _________________________471472sample_df = A B C D4730 foo one 1.0 10.04741 foo one 2.0 20.04752 foo two 3.0 30.04763 bar two 4.0 40.04774 bar one 5.0 50.04785 bar one 6.0 60.0479480 def test_pivot_table_aggfunc_dict(sample_df: pd.DataFrame) -> None:481 """Test dict of aggfuncs mapping columns to functions."""482 check(483 assert_type(484 sample_df.pivot_table(485 values=["C", "D"],486 index="A",487 columns="B",488 aggfunc={"C": "sum", "D": "mean"},489 ),490 pd.DataFrame,491 ),492 pd.DataFrame,493 )494 check(495 assert_type(496 sample_df.pivot_table(497 values=["C", "D"],498 index="A",499 columns="B",500 aggfunc={"C": "min", "D": "max"},501 ),502 pd.DataFrame,503 ),504 pd.DataFrame,505 )506 check(507 assert_type(508 sample_df.pivot_table(509 values=["C", "D"],510 index="A",511 columns="B",512 aggfunc={"C": "nunique", "D": "count"},513 ),514 pd.DataFrame,515 ),516 pd.DataFrame,517 )518 519> with pytest_warns_bounded(520 FutureWarning,521 r"The provided callable.*",522 lower="2.3.0",523 ):524E Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.525E Emitted warnings: [].526527tests/frame/test_frame.py:2036: Failed528______________________ test_timedelta_properties_methods _______________________529530 def test_timedelta_properties_methods() -> None:531 td = pd.Timedelta("1 day")532 check(assert_type(td.value, int), int)533 check(assert_type(td.asm8, np.timedelta64), np.timedelta64)534 535 check(assert_type(td.days, int), int)536 check(assert_type(td.microseconds, int), int)537 check(assert_type(td.nanoseconds, int), int)538 check(assert_type(td.seconds, int), int)539 check(assert_type(td.value, int), int)540 check(assert_type(td.resolution_string, str), str)541 check(assert_type(td.components, Components), Components)542 check(assert_type(td.unit, TimeUnit), str)543 544 check(assert_type(td.ceil("D"), pd.Timedelta), pd.Timedelta)545 check(assert_type(td.floor(Day()), pd.Timedelta), pd.Timedelta)546 check(assert_type(td.isoformat(), str), str)547 check(assert_type(td.round("s"), pd.Timedelta), pd.Timedelta)548 check(assert_type(td.to_numpy(), np.timedelta64), np.timedelta64)549 check(assert_type(td.to_pytimedelta(), dt.timedelta), dt.timedelta)550 check(assert_type(td.to_timedelta64(), np.timedelta64), np.timedelta64)551 check(assert_type(td.total_seconds(), float), float)552> check(assert_type(td.view(np.int64), object), np.int64)553 ^^^^^^^^^^^^^^^^^554555tests/scalars/test_scalars.py:508: 556_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 557558> ???559E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead.560561pandas/_libs/tslibs/timedeltas.pyx:1690: DeprecationWarning562_______________________________ test_agg_complex _______________________________563564 def test_agg_complex() -> None:565 series = pd.Series([3j, 3 + 4j, 2j])566 check(assert_type(series, "pd.Series[complex]"), pd.Series, np.complex128)567 568 check(assert_type(series.mean(), complex), np.complex128)569 with pytest_warns_bounded(570 np.exceptions.ComplexWarning,571 r"Casting complex values to real discards the imaginary part",572 ):573 check(assert_type(series.median(), float), np.float64)574 with (575> pytest_warns_bounded(576 np.exceptions.ComplexWarning,577 r"Casting complex values to real discards the imaginary part",578 ),579 pytest_warns_bounded(580 RuntimeWarning, r"invalid value encountered in sqrt", upper="2.3.99"581 ),582 ):583E Failed: DID NOT WARN. No warnings of type (<class 'numpy.exceptions.ComplexWarning'>,) were emitted.584E Emitted warnings: [].585586tests/series/test_agg.py:58: Failed587______________________________ test_sparse_dtype _______________________________588589 def test_sparse_dtype() -> None:590 s_dt = pd.SparseDtype("i4")591 check(assert_type(s_dt, pd.SparseDtype), pd.SparseDtype)592 check(assert_type(pd.SparseDtype(str), pd.SparseDtype), pd.SparseDtype)593 check(assert_type(pd.SparseDtype(complex), pd.SparseDtype), pd.SparseDtype)594 check(assert_type(pd.SparseDtype(bool), pd.SparseDtype), pd.SparseDtype)595 check(assert_type(pd.SparseDtype(np.int64), pd.SparseDtype), pd.SparseDtype)596 check(assert_type(pd.SparseDtype(str), pd.SparseDtype), pd.SparseDtype)597 check(assert_type(pd.SparseDtype(float), pd.SparseDtype), pd.SparseDtype)598> check(assert_type(pd.SparseDtype(np.datetime64), pd.SparseDtype), pd.SparseDtype)599 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^600601tests/test_dtypes.py:128: 602_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 603/nix/store/gidppvbxdshfx8y9y5kv84zq7z6amm0m-python3.14-pandas-3.0.4/lib/python3.14/site-packages/pandas/core/dtypes/dtypes.py:1785: in __init__604 fill_value = na_value_for_dtype(dtype)605 ^^^^^^^^^^^^^^^^^^^^^^^^^606_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 607608dtype = dtype('<M8'), compat = True609610 def na_value_for_dtype(dtype: DtypeObj, compat: bool = True):611 """612 Return a dtype compat na value613 614 Parameters615 ----------616 dtype : string / dtype617 compat : bool, default True618 619 Returns620 -------621 np.dtype or a pandas dtype622 623 Examples624 --------625 >>> na_value_for_dtype(np.dtype("int64"))626 0627 >>> na_value_for_dtype(np.dtype("int64"), compat=False)628 nan629 >>> na_value_for_dtype(np.dtype("float64"))630 nan631 >>> na_value_for_dtype(np.dtype("complex128"))632 nan633 >>> na_value_for_dtype(np.dtype("bool"))634 False635 >>> na_value_for_dtype(np.dtype("datetime64[ns]"))636 np.datetime64('NaT','ns')637 """638 639 if isinstance(dtype, ExtensionDtype):640 return dtype.na_value641 elif dtype.kind in "mM":642 unit = np.datetime_data(dtype)[0]643> return dtype.type("NaT", unit)644 ^^^^^^^^^^^^^^^^^^^^^^^645E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead.646647/nix/store/gidppvbxdshfx8y9y5kv84zq7z6amm0m-python3.14-pandas-3.0.4/lib/python3.14/site-packages/pandas/core/dtypes/missing.py:635: DeprecationWarning648__________________________________ test_isna ___________________________________649650 def test_isna() -> None:651 # https://github.com/pandas-dev/pandas-stubs/issues/264652 s = pd.Series([1, np.nan, 3.2])653 check(assert_type(pd.isna(s), "pd.Series[bool]"), pd.Series, np.bool_)654 check(assert_type(pd.notna(s), "pd.Series[bool]"), pd.Series, np.bool_)655 656 df = pd.DataFrame({"a": [1, 2, 1, 2], "b": [1, 1, 2, np.nan]})657 check(assert_type(pd.isna(df), "pd.DataFrame"), pd.DataFrame)658 check(assert_type(pd.notna(df), "pd.DataFrame"), pd.DataFrame)659 660 idx = pd.Index([1, 2, np.nan, float("nan")])661 check(assert_type(pd.isna(idx), np_1darray_bool), np_1darray_bool)662 check(assert_type(pd.notna(idx), np_1darray_bool), np_1darray_bool)663 664 # ExtensionArray665 ext_arr = idx.array666 check(assert_type(pd.isna(ext_arr), np_1darray_bool), np_1darray_bool)667 check(assert_type(pd.notna(ext_arr), np_1darray_bool), np_1darray_bool)668 669 # 1-D numpy array670 arr_1d = idx.to_numpy()671 check(assert_type(pd.isna(arr_1d), np_1darray_bool), np_1darray_bool)672 check(assert_type(pd.notna(arr_1d), np_1darray_bool), np_1darray_bool)673 674 # 2-D numpy array675 arr_2d = idx.to_numpy().reshape(2, 2)676 check(assert_type(pd.isna(arr_2d), np_2darray[np.bool]), np_2darray[np.bool])677 check(assert_type(pd.notna(arr_2d), np_2darray[np.bool]), np_2darray[np.bool])678 679 # N-D numpy array680 arr_nd = idx.to_numpy().reshape([2, 2])681 check(assert_type(pd.isna(arr_nd), np_ndarray_bool), np_ndarray_bool)682 check(assert_type(pd.notna(arr_nd), np_ndarray_bool), np_ndarray_bool)683 684 # List of scalars685 l_sca = [1, 2.5, float("nan")]686 check(assert_type(pd.isna(l_sca), np_1darray_bool), np_1darray_bool)687 check(assert_type(pd.notna(l_sca), np_1darray_bool), np_1darray_bool)688 689 # List of unknown members690 l_any: list[object] = [arr_1d, ext_arr]691 check(assert_type(pd.isna(l_any), np_ndarray_bool), np_ndarray_bool)692 check(assert_type(pd.notna(l_any), np_ndarray_bool), np_ndarray_bool)693 694 assert check(assert_type(pd.isna(pd.NA), bool), bool)695 assert not check(assert_type(pd.notna(pd.NA), bool), bool)696 697 assert check(assert_type(pd.isna(pd.NaT), bool), bool)698 assert not check(assert_type(pd.notna(pd.NaT), bool), bool)699 700 assert check(assert_type(pd.isna(None), bool), bool)701 assert not check(assert_type(pd.notna(None), bool), bool)702 703 assert not check(assert_type(pd.isna(2.5), bool), bool)704 assert check(assert_type(pd.notna(2.5), bool), bool)705 706 # Checks for datetime, timedelta, np.datetime64 and np.timedelta64707 py_dt = dt.datetime.now()708 assert check(assert_type(pd.notna(py_dt), bool), bool)709 assert not check(assert_type(pd.isna(py_dt), bool), bool)710 711 py_td = dt.datetime.now() - py_dt712 assert check(assert_type(pd.notna(py_td), bool), bool)713 assert not check(assert_type(pd.isna(py_td), bool), bool)714 715 np_dt = np.datetime64(py_dt)716 assert check(assert_type(pd.notna(np_dt), bool), bool)717 assert not check(assert_type(pd.isna(np_dt), bool), bool)718 719 np_td = np.timedelta64(py_td)720 assert check(assert_type(pd.notna(np_td), bool), bool)721 assert not check(assert_type(pd.isna(np_td), bool), bool)722 723> np_nat = np.timedelta64("NaT")724 ^^^^^^^^^^^^^^^^^^^^^725E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead.726727tests/test_pandas.py:524: DeprecationWarning728_____________________ test_pivot_table_aggfunc_numpy_ufunc _____________________729730sample_df = A B C D7310 foo one 1.0 10.07321 foo one 2.0 20.07332 foo two 3.0 30.07343 bar two 4.0 40.07354 bar one 5.0 50.07365 bar one 6.0 60.0737738 def test_pivot_table_aggfunc_numpy_ufunc(sample_df: pd.DataFrame) -> None:739 """Test with df.pivot_table using np.ufunc."""740 # Test with pd.pivot_table using np.ufunc741> with pytest_warns_bounded(742 FutureWarning,743 r"The provided callable.*",744 lower="2.3.0",745 ):746E Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.747E Emitted warnings: [].748749tests/test_pandas.py:2450: Failed750________________________ test_pivot_table_aggfunc_list _________________________751752sample_df = A B C D7530 foo one 1.0 10.07541 foo one 2.0 20.07552 foo two 3.0 30.07563 bar two 4.0 40.07574 bar one 5.0 50.07585 bar one 6.0 60.0759760 def test_pivot_table_aggfunc_list(sample_df: pd.DataFrame) -> None:761 """Test with df.pivot_table using list of strings."""762 check(763 assert_type(764 pd.pivot_table(765 sample_df, values="C", index="A", columns="B", aggfunc=["sum", "mean"]766 ),767 pd.DataFrame,768 ),769 pd.DataFrame,770 )771 check(772 assert_type(773 pd.pivot_table(774 sample_df,775 values="C",776 index="A",777 columns="B",778 aggfunc=["min", "max", "count"],779 ),780 pd.DataFrame,781 ),782 pd.DataFrame,783 )784 785> with pytest_warns_bounded(786 FutureWarning,787 r"The provided callable.*",788 lower="2.3.0",789 ):790E Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.791E Emitted warnings: [].792793tests/test_pandas.py:2589: Failed794________________________ test_pivot_table_aggfunc_dict _________________________795796sample_df = A B C D7970 foo one 1.0 10.07981 foo one 2.0 20.07992 foo two 3.0 30.08003 bar two 4.0 40.08014 bar one 5.0 50.08025 bar one 6.0 60.0803804 def test_pivot_table_aggfunc_dict(sample_df: pd.DataFrame) -> None:805 """Test dict of aggfuncs mapping columns to functions."""806 check(807 assert_type(808 pd.pivot_table(809 sample_df,810 values=["C", "D"],811 index="A",812 columns="B",813 aggfunc={"C": "sum", "D": "mean"},814 ),815 pd.DataFrame,816 ),817 pd.DataFrame,818 )819 check(820 assert_type(821 pd.pivot_table(822 sample_df,823 values=["C", "D"],824 index="A",825 columns="B",826 aggfunc={"C": "min", "D": "max"},827 ),828 pd.DataFrame,829 ),830 pd.DataFrame,831 )832 833> with pytest_warns_bounded(834 FutureWarning,835 r"The provided callable.*",836 lower="2.3.0",837 ):838E Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.839E Emitted warnings: [].840841tests/test_pandas.py:2657: Failed842_____________________________ test_timedelta_range _____________________________843844 def test_timedelta_range() -> None:845 check(846 assert_type(847 pd.timedelta_range(848 pd.Timedelta(1, unit="D"), pd.Timedelta(10, unit="D"), periods=10849 ),850 pd.TimedeltaIndex,851 ),852 pd.TimedeltaIndex,853 )854 check(855 assert_type(856 pd.timedelta_range(dt.timedelta(1), dt.timedelta(10), periods=10),857 pd.TimedeltaIndex,858 ),859 pd.TimedeltaIndex,860 )861 check(862 assert_type(863 pd.timedelta_range(864> np.timedelta64(86400000000000),865 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^866 np.timedelta64(864000000000000),867 periods=10,868 ),869 pd.TimedeltaIndex,870 ),871 pd.TimedeltaIndex,872 )873E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead.874875tests/test_timefuncs.py:1552: DeprecationWarning876=========================== short test summary info ============================877FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values2-list] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...878FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values2-tuple] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...879FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values2-UserList] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...880FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values4-list] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...881FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values4-tuple] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...882FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values4-UserList] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...883FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values5-list] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...884FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values5-tuple] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...885FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values5-UserList] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...886FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values6-list] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...887FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values6-tuple] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...888FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values6-UserList] - RuntimeError: Expected type '<class 'pandas.arrays.NumpyExtensionArray'>' b...889FAILED tests/frame/test_frame.py::test_pivot_table_aggfunc_numpy_ufunc - Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were e...890FAILED tests/frame/test_frame.py::test_pivot_table_aggfunc_list - Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were e...891FAILED tests/frame/test_frame.py::test_pivot_table_aggfunc_dict - Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were e...892FAILED tests/scalars/test_scalars.py::test_timedelta_properties_methods - DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, a...893FAILED tests/series/test_agg.py::test_agg_complex - Failed: DID NOT WARN. No warnings of type (<class 'numpy.exceptions.Complex...894FAILED tests/test_dtypes.py::test_sparse_dtype - DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, a...895FAILED tests/test_pandas.py::test_isna - DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, a...896FAILED tests/test_pandas.py::test_pivot_table_aggfunc_numpy_ufunc - Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were e...897FAILED tests/test_pandas.py::test_pivot_table_aggfunc_list - Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were e...898FAILED tests/test_pandas.py::test_pivot_table_aggfunc_dict - Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were e...899FAILED tests/test_timefuncs.py::test_timedelta_range - DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, a...900==== 23 failed, 2173 passed, 10 skipped, 46 deselected in 117.28s (0:01:57) ====