FAAM-146 / decades-ppandas

1 stars 0 forks source link

Setting values on copy of a slice from a dataframe #10

Closed davesproson closed 3 years ago

davesproson commented 3 years ago

For example:

Running BuckCR2
/home/dave/vcs/decades-ppandas/ppodd/pod/p_buck.py:549: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  buck_mirr_temp[buck_mirr_temp == 273.15] = np.nan
/home/dave/vcs/decades-ppandas/ppodd/pod/p_buck.py:550: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  buck_mirr_temp[buck_mirr_temp < 0] = np.nan

This is known to be an issue in SeaProbe(504) Buck(549, 550)