MeteoSwiss-APN / pytrajplot

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Adapt dataframe concatenation to avoid FutureWarning from Pandas #36

Open pirmink opened 6 months ago

pirmink commented 6 months ago

Description

Runtime warning from pandas: .../miniconda3/envs/pytrajplot_v1.1.2/lib/python3.11/site-packages/pytrajplot/generate_pdf.py:599: FutureWarning: The behavior of array concatenation with empty entries is deprecated. In a future version, this will no longer exclude empty items when determining the result dtype. To retain the old behavior, exclude the empty entries before the concat operation. trajectory_longitude_expansion = pd.concat(

What I Did

PWD=/users/kaufmann/scratch/lagranto/job/large_area_bug pytrajplot . . --datatype png --datatype pdf --domain dynamic --domain dynamic_zoom