DHI/mikeio1d

PerformanceWarning when reading res1d file

leszek-z opened this issue · 0 comments

Hi,

I received hundreds of such PerformanceWarning:

PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling frame.insert many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use newframe = frame.copy()
df[col_name] = values

Is there any way to read res1d files and overcome these performance warnings?