Closed
Description
There was initially a failure due to pandas 0.22 -> 0.23 in #3017,
fixed by a tiny tweak.
However there is an outstanding deprecation warning emerging from the tests ..
$ python lib/iris/tests/test_pandas.py -v TestAsSeries.test_copy_float_false
test_copy_float_false (__main__.TestAsSeries) ... /home/h05/itpp/git/iris/iris_main/lib/iris/pandas.py:133: FutureWarning: Series.base is deprecated and will be removed in a future version
if hasattr(pandas_obj, 'base'):
/home/h05/itpp/git/iris/iris_main/lib/iris/pandas.py:134: FutureWarning: Series.base is deprecated and will be removed in a future version
base = pandas_obj.base
ok
----------------------------------------------------------------------
Ran 1 test in 0.004s
OK
That arises from the code here
This is not so trivial a problem :
as existing code indicates, the usage of the 'base' property already changed.
If I understand right, potentially we can now just replace 'base' with 'values'.
- except that would no longer work with older versions of pandas.
However, right now, even testing for the presence of a '.base' attribute is triggering the deprecation warning.