ktmeaton / ncov-recombinant

Reproducible workflow for SARS-CoV-2 recombinant sequence detection.
MIT License
18 stars 2 forks source link

pandas.errors.PerformanceWarning: DataFrame is highly fragmented. #218

Closed ktmeaton closed 1 year ago

ktmeaton commented 1 year ago

Occurs during the rule plot for the cluster_id plot.

pandas.errors.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()

ktmeaton commented 1 year ago

Employed defragmenting fix suggested in:

https://stackoverflow.com/questions/68292862/performancewarning-dataframe-is-highly-fragmented-this-is-usually-the-result-o

ktmeaton commented 1 year ago

Re-opening since this occurred again in plots_historical.

ktmeaton commented 1 year ago

I never actually implemented the fix!

ktmeaton commented 1 year ago

Now it has been added.