Closed
Description
==================================== ERRORS ====================================
_____ ERROR at setup of TestCasting.test_astype_object_series[data-object] _____
[gw1] linux -- Python 3.7.5 /home/vsts/miniconda3/envs/pandas-dev/bin/python
allow_in_pandas = None, dtype = PandasDtype('object')
@pytest.fixture
def data_missing(allow_in_pandas, dtype):
# For NumPy <1.16, np.array([np.nan, (1,)]) raises
# ValueError: setting an array element with a sequence.
if dtype.numpy_dtype == "object":
if _np_version_under1p16:
raise pytest.skip("Skipping for NumPy <1.16")
> return PandasArray(np.array([np.nan, (1,)]))
E DeprecationWarning: Creating an ndarray with automatic object dtype is deprecated, use dtype=object if you intended it, otherwise specify an exact dtype
from https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=22360.
So numpy has deprecated object-dtype inference. I'm not sure if something like np.array([object(), object()])
warns now, or if it's just when the elements are sequences of difference lengths.
Anyway, this is a nice change, but will be a bit of work to get fixed.