hgrecco / pint-pandas

Pandas support for pint
Other
172 stars 42 forks source link

137 pandas eval #239

Closed mutricyl closed 3 months ago

mutricyl commented 3 months ago
andrewgsavage commented 3 months ago

can you pytest skip the failing tests and they can be worked on in another PR?

andrewgsavage commented 3 months ago

and add a note in changes to say eval now works

mutricyl commented 3 months ago

can you pytest skip the failing tests and they can be worked on in another PR?

I agree with you in principle and I will do that. However looking a little bit into details pytest -rf states 357 failed tests. 316 of them are : TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. It may be worth investigating this particular issue instead of waisting to much time in adding @pytest.mark.skip.

pytest summary FAILED pint_pandas/testsuite/test_issues.py::TestIssue165::test_force_ndarray_like - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_issues.py::TestIssue21::test_offset_concat - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_issues.py::TestIssue68::test_assignment_add_empty - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_issues.py::TestIssue174::test_sum - TypeError: agg function failed [how->sum,dtype->pint[meter]] FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-float-boolean-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-float-boolean-array-na] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-int-boolean-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-int-boolean-array-na] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-complex128-boolean-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[True-complex128-boolean-array-na] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-float-boolean-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-float-boolean-array-na] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-int-boolean-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-int-boolean-array-na] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-complex128-boolean-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_mask[False-complex128-boolean-array-na] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-float-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-float-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-int-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-int-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-complex128-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-complex128-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[True-complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-float-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-float-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-int-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-int-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-complex128-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-complex128-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array[False-complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-float-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-float-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-int-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-int-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-complex128-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-complex128-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[True-complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-float-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-float-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-int-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-int-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-complex128-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-complex128-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_integer_array_with_repeats[False-complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_tuple_index[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_tuple_index[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_tuple_index[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_slice[True-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_slice[True-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_slice[True-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_slice[False-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_slice[False-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_slice[False-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_loc_iloc_slice[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_loc_iloc_slice[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_loc_iloc_slice[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[index-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[index-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[index-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[list[index]-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[list[index]-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[list[index]-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[full_slice-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[full_slice-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[full_slice-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[range-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[range-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[range-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[list(range)-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[list(range)-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[list(range)-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[mask-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[mask-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_dataframe_column[mask-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_row[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_row[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_with_expansion_row[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_delitem_series[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_delitem_series[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_delitem_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_2d_values[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_2d_values[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_setitem_2d_values[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_all_na_block[complex128-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_all_na_block[complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_columns[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_columns[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_columns[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_extension_arrays_copy_false[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_extension_arrays_copy_false[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_extension_arrays_copy_false[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_with_reindex[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_with_reindex[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_concat_with_reindex[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align_frame[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align_frame[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align_series_frame[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align_series_frame[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_align_series_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_merge[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_merge[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_merge[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_merge_on_extension_array[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_merge_on_extension_array_duplicates[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[float-True-columns0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[float-True-columns1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[float-False-columns0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[float-False-columns1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[int-True-columns0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[int-True-columns1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[int-False-columns0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[int-False-columns1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[complex128-True-columns0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[complex128-True-columns1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[complex128-False-columns0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_stack[complex128-False-columns1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_dataframe_repr[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_dataframe_repr[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_dataframe_repr[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_isna[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_dropna_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_dropna_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_limit_pad[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-outside-input_ilocs0-expected_ilocs0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-outside-input_ilocs1-expected_ilocs1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-outside-input_ilocs2-expected_ilocs2] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-outside-input_ilocs3-expected_ilocs3] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-inside-input_ilocs4-expected_ilocs4] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-inside-input_ilocs5-expected_ilocs5] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-inside-input_ilocs6-expected_ilocs6] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_ffill_limit_area[complex128-inside-input_ilocs7-expected_ilocs7] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_limit_backfill[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_series_method[ffill-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_series_method[bfill-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_value_counts_with_normalize[float] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_value_counts_with_normalize[int] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_value_counts_with_normalize[complex128] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_argmin_argmax[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_argmin_argmax[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_argmin_argmax[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[None-float-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[None-float-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[None-int-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[None-int-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[None-complex128-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[None-complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[-float-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[-float-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[-int-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[-int-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[-complex128-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values[-complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_missing[None-complex128-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_missing[None-complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_missing[-complex128-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_missing[-complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_frame[float-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_frame[float-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_frame[int-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_frame[int-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_frame[complex128-True] - TypeError: 'values' is not ordered, please explicitly specify the categories order by passing in a categories argument. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_sort_values_frame[complex128-False] - TypeError: 'values' is not ordered, please explicitly specify the categories order by passing in a categories argument. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[float-first] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[float-last] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[float-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[int-first] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[int-last] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[int-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[complex128-first] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[complex128-last] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_duplicated[complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_unique[complex128--Series] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_unique[complex128--] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_unique[complex128-unique-Series] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_unique[complex128-unique-] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_factorize[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_factorize_equivalence[complex128] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_limit_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_limit_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_copy_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_copy_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_fillna_length_mismatch[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_combine_first[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_combine_first[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_combine_first[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[float--2-indices0-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[float--2-indices0-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[float-0-indices1-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[float-0-indices1-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[float-2-indices2-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[float-2-indices2-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[int--2-indices0-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[int--2-indices0-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[int-0-indices1-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[int-0-indices1-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[int-2-indices2-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[int-2-indices2-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[complex128--2-indices0-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[complex128--2-indices0-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[complex128-0-indices1-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[complex128-0-indices1-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[complex128-2-indices2-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_container_shift[complex128-2-indices2-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[float--4-indices0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[float--1-indices1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[float-0-indices2] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[float-1-indices3] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[float-4-indices4] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[int--4-indices0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[int--1-indices1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[int-0-indices2] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[int-1-indices3] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[int-4-indices4] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[complex128--4-indices0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[complex128--1-indices1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[complex128-0-indices2] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[complex128-1-indices3] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_non_empty_array[complex128-4-indices4] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_fill_value[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_fill_value[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_shift_fill_value[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_searchsorted[True-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_searchsorted[True-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_searchsorted[True-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_searchsorted[False-float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_searchsorted[False-int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_searchsorted[False-complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-True-complex128-0] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-True-complex128-1] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-True-complex128-2] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-True-complex128-repeats3] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-False-complex128-0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-False-complex128-1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-False-complex128-2] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[True-False-complex128-repeats3] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-True-complex128-0] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-True-complex128-1] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-True-complex128-2] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-True-complex128-repeats3] - AssertionError: numpy array are different FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-False-complex128-0] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-False-complex128-1] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-False-complex128-2] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_repeat[False-False-complex128-repeats3] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_delete[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_delete[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_delete[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_insert[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_insert[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_insert[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_equals[True-float-Series] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_equals[True-int-Series] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_equals[True-complex128-Series] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_equals[False-float-Series] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_equals[False-int-Series] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_equals[False-complex128-Series] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_agg_extension[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_transform[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_apply[scalar-complex128] - AssertionError: Did not see expected warning of class 'DeprecationWarning' FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_apply[list-complex128] - AssertionError: Did not see expected warning of class 'DeprecationWarning' FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_apply[series-complex128] - AssertionError: Did not see expected warning of class 'DeprecationWarning' FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_apply[object-float] - AssertionError: Did not see expected warning of class 'DeprecationWarning' FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_apply[object-int] - AssertionError: Did not see expected warning of class 'DeprecationWarning' FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_groupby_extension_apply[object-complex128] - AssertionError: Did not see expected warning of class 'DeprecationWarning' FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_in_numeric_groupby[complex128] - TypeError: agg function failed [how->sum,dtype->pint[meter]] FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_iloc_series[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_iloc_series[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_iloc_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_iloc_frame[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_iloc_frame[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_iloc_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_series[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_series[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_frame[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_frame[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_frame[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_boolean_array_mask[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_boolean_array_mask[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_boolean_array_mask[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[float-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[float-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[float-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[int-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[int-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[int-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[complex128-list] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[complex128-integer-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_getitem_integer_array[complex128-numpy-array] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_get[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_get[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_get[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_sequence[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_sequence[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_sequence[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_empty[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_empty[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_empty[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_negative[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_negative[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_negative[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_non_na_fill_value[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_pandas_style_negative_raises[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_pandas_style_negative_raises[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_pandas_style_negative_raises[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_out_of_bounds_raises[float-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_out_of_bounds_raises[float-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_out_of_bounds_raises[int-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_out_of_bounds_raises[int-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_out_of_bounds_raises[complex128-True] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_out_of_bounds_raises[complex128-False] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_series[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray.FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_series[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_take_series[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_reindex[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_reindex[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_reindex[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_reindex_non_na_fill_value[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_len1[float] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_len1[int] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_loc_len1[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_series_constructor_scalar_with_index[complex128] - TypeError: pd.api.extensions.take requires a numpy.ndarray, ExtensionArray, Index, or Series, got NumpyExtensionArray. FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__radd__-float] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__radd__-int] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__radd__-complex128] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rsub__-float] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rsub__-int] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rsub__-complex128] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rmul__-float] - AssertionError FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rmul__-int] - AssertionError FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rmul__-complex128] - AssertionError FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rtruediv__-float] - AssertionError FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rtruediv__-int] - AssertionError FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rtruediv__-complex128] - AssertionError FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rpow__-float] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rpow__-int] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). FAILED pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_arith_frame_with_scalar[__rpow__-complex128] - ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
mutricyl commented 3 months ago

skipped tests:

all temporary skip are marked by GH #239

andrewgsavage commented 3 months ago

Looks like there's a unique function issue similar to the take issue

pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_value_counts_with_normalize[float] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED

andrewgsavage commented 3 months ago

FAILED pint_pandas/testsuite/test_issues.py::TestIssue80::test_div - AssertionError: assert <Quantity(88.294507, 'millisecond')> <= (5 * <Quantity(0.689048, 'millisecond')>)

That test can be skipped, it's been causing issues for a long time

mutricyl commented 3 months ago

Argh, shame on me, I concentrated on fixing pandas 3 but did not test my changes with pandas 2.2.2 ....

mutricyl commented 3 months ago

Looks like there's a unique function issue similar to the take issue

pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_value_counts_with_normalize[float] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED

I have not seen this test failling. @andrewgsavage do you remember which environment induced this issue ?

andrewgsavage commented 3 months ago

Looks like there's a unique function issue similar to the take issue pint_pandas/testsuite/test_pandas_extensiontests.py::TestPintArray::test_value_counts_with_normalize[float] - TypeError: unique requires a Series, Index, ExtensionArray, or np.ndarray, got NumpyExtensionArray. FAILED

I have not seen this test failling. @andrewgsavage do you remember which environment induced this issue ?

It's in this post https://github.com/hgrecco/pint-pandas/pull/239#issuecomment-2208326717

andrewgsavage commented 3 months ago

nice one

MichaelTiemannOSC commented 2 months ago

I found a problem. If the dataframe consists of mixed PintType elements that are not compatible, the code will now fail. Here's a diff that adds a test case to 137 and fixed the problem in PintArray:

diff --git a/pint_pandas/pint_array.py b/pint_pandas/pint_array.py
index 9c5efab..86560f0 100644
--- a/pint_pandas/pint_array.py
+++ b/pint_pandas/pint_array.py
@@ -203,6 +203,7 @@ class PintType(ExtensionDtype):

         In order to be able to be able to perform operation on ``PintType``
         with scalars, mix of ``PintType`` and numeric values are allowed.
+        But all ``PintType`` elements must be compatible.

         Parameters
@@ -216,7 +217,13 @@ class PintType(ExtensionDtype):
         if all(
             isinstance(x, PintType) or pd.api.types.is_numeric_dtype(x) for x in dtypes
         ):
-            return self
+            PintType_list = [x for x in dtypes if isinstance(x, PintType)]
+            if len(PintType_list) < 2:
+                return self
+            if all (PintType_list[0].units.is_compatible_with(x.units) for x in PintType_list[1:]):
+                return self
+            else:
+                return None
         else:
             return None

diff --git a/pint_pandas/testsuite/test_issues.py b/pint_pandas/testsuite/test_issues.py
index 25709c5..c8c8a31 100644
--- a/pint_pandas/testsuite/test_issues.py
+++ b/pint_pandas/testsuite/test_issues.py
@@ -277,3 +277,14 @@ class TestIssue137(BaseExtensionTests):
         )
         tm.assert_series_equal(df.eval("a / b"), df["a"] / df["b"])
         tm.assert_series_equal(df.eval("a / c"), df["a"] / df["c"])
+
+    def test_mixed_df(self):
+        df = pd.DataFrame(
+            {
+                "a": pd.Series([1.0, 2.0, 3.0], dtype="pint[meter]"),
+                "b": pd.Series([4.0, 5.0, 6.0], dtype="pint[second]"),
+                "c": [1.0, 2.0, 3.0],
+            }
+        )
+
+        assert df["a"][0] == df.iloc[0][0]
andrewgsavage commented 2 months ago

could you submit that as a PR?

MichaelTiemannOSC commented 2 months ago

Done: https://github.com/hgrecco/pint-pandas/pull/245. It exposes some more technical challenges for this PR. To really fix properly, I suspect we need to distinguish from operations that require compatibility (such as additive operations, clipping, quantiles, sorting) and those that don't (which include indexing and multiplicative operations).