You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short description of the problem:
importing stdpopsim under pandas 2.0.1 results in a warning
How to reproduce the problem:
Python 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:17:34) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import stdpopsim
/Users/yan/mambaforge/lib/python3.10/site-packages/stdpopsim/catalog/HomSap/demographic_models.py:158: FutureWarning: Calling int on a single element Series is deprecated and will raise a TypeError in the future. Use int(ser.iloc[0]) instead
time=int(extended_GF.time.head(1) - 1), rate=0
mambaforge/lib/python3.10/site-packages/stdpopsim/catalog/HomSap/demographic_models.py:161: FutureWarning: Calling int on a single element Series is deprecated and will raise a TypeError in the future. Use int(ser.iloc[0]) instead
time=int(extended_GF.time.tail(1) + 1), rate=0
>>> import pandas
>>> pandas.__version__
'2.0.1'
The text was updated successfully, but these errors were encountered:
Short description of the problem:
importing stdpopsim under pandas 2.0.1 results in a warning
How to reproduce the problem:
The text was updated successfully, but these errors were encountered: