Replacing the obsolete applymap with map in new versions pandas.
This PR removes the warnings:
tests/test_core.py::test_random_weights
/home/runner/work/ffn/ffn/tests/test_core.py:455: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
assert df.applymap(lambda x: (x >= low and x <= high)).all().all()
tests/test_core.py::test_random_weights
/home/runner/work/ffn/ffn/tests/test_core.py:467: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
assert (
tests/test_core.py::test_random_weights
/home/runner/work/ffn/ffn/tests/test_core.py:483: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
assert (
tests/test_core.py::test_random_weights
/home/runner/work/ffn/ffn/tests/test_core.py:499: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
assert (
Replacing the obsolete applymap with map.
Replacing the obsolete applymap with map in new versions pandas.
This PR removes the warnings:
running tests:
pytest tests/test_core.py::test_random_weights