MeteoSwiss-APN / movero-plot

Command Line Tool to create MOVERO Plots (formerly created using IDL) based on Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pandas Future Warnings in station_scres.py

pirmink opened this issue · comments

  • movero-plot version: 1.1.0
  • Python version: 3.11.7
  • Operating System: Linux 5.3.18-150300.59.87_11.0.78-cray_shasta_c

Description

Pandas issues FutureWarnings during the execution of station_scores.py in moveroplot.

What I Did

moveroplot --plot_type=station,time,daytime,total --input_dir=/scratch/mch/kaufmann/movero/wd/Monitoring --output_dir=/scratch/mch/kaufmann/movero/wd/Monitoring/K-CH1-FG-det_alps --lt_ranges=01 --plot_params=TOT_PREC1,GLOB,DURSUN1,T_2M,TD_2M,RELHUM_2M,FF_10M,VMAX_10M1,DD_10M,PS,PMSL --plot_cat_params=TOT_PREC1,T_2M,TD_2M,FF_10M,VMAX_10M1 --plot_cat_thresh=0.2,0.5,2:0,15,25:0,15:2.5,5,10:5,12.5,20 --plot_scores=ME,MMOD/MOBS,MAE,STDE,RMSE,COR,NOBS --plot_cat_scores=FBI,MF/OF,POD,FAR,THS,ETS K-CH1-FG-det_alps
--- parsing user inputs
[...]
--- initialising station score pipeline
/scratch/mch/kaufmann/src/movero-plot/src/moveroplot/station_scores.py:87: FutureWarning: The behavior of Series.idxmin with all-NA values, or any-NA and skipna=False, is deprecated. In a future version this will raise ValueError
  min_station = data["df"].loc[score].idxmin()
/scratch/mch/kaufmann/src/movero-plot/src/moveroplot/station_scores.py:89: FutureWarning: The behavior of Series.idxmax with all-NA values, or any-NA and skipna=False, is deprecated. In a future version this will raise ValueError
  max_station = data["df"].loc[score].idxmax()