Closed
Description
We've started getting several types of deprecation warnings from the tests:
pvlib/tests/test_modelchain.py::test_aoi_model_interp
/home/runner/work/pvlib-python/pvlib-python/pvlib/tests/test_modelchain.py:1476: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
assert mc.results.ac[1] < 1
pvlib/tests/test_clearsky.py::test_detect_clearsky_window
/home/runner/work/pvlib-python/pvlib-python/pvlib/tests/test_clearsky.py:634: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'True' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
expected.iloc[-3:] = True
pvlib/tests/test_singlediode.py: 14 warnings
/home/runner/work/pvlib-python/pvlib-python/pvlib/tests/test_singlediode.py:118: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
joined[is_number] = joined[is_number].applymap(np.float64)
/home/runner/work/pvlib-python/pvlib-python/pvlib/scaling.py:279: FutureWarning: DataFrame.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead.
df = df.fillna(method='bfill').fillna(method='ffill')
Here's an example run: https://github.com/pvlib/pvlib-python/actions/runs/6550206298/job/17788805508?pr=1827#step:9:65
Addressing these would be good first PRs for anyone wanting to get started with contributing to pvlib's codebase! If you plan to submit a PR for one of these warnings, please comment here so that someone else does not duplicate the work.