kfuku52 / csubst

Molecular convergence detection
BSD 3-Clause "New" or "Revised" License
25 stars 1 forks source link

FutureWarning: In a future version, `df.iloc[:, i] = newvals` will attempt to set the values inplace instead of always setting a new array. #24

Closed kfuku52 closed 1 year ago

kfuku52 commented 1 year ago

With pandas 1.5.0:

/opt/conda/envs/biotools/lib/python3.9/site-packages/csubst/param.py:57: FutureWarning: In a future version, `df.iloc[:, i] = newvals` will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use either `df[df.columns[i]] = newvals` or, if columns are non-unique, `df.isetitem(i, newvals)`
  g['df_cb_stats'].loc[:,'arity'] = ind + 1
/opt/conda/envs/biotools/lib/python3.9/site-packages/csubst/table.py:17: FutureWarning: In a future version, `df.iloc[:, i] = newvals` will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use either `df[df.columns[i]] = newvals` or, if columns are non-unique, `df.isetitem(i, newvals)`