SDGforskning / sdg-strings

Search strings for finding SDG-related works per goal and target (python script, WoS search strategy)
Creative Commons Attribution 4.0 International
3 stars 4 forks source link

Python script v2.0.0 - performance issue with fragmented dataframe #169

Open Caroline-A opened 9 months ago

Caroline-A commented 9 months ago

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()

Perhaps the method of labeling should be changed.

https://github.com/SDGforskning/Scripts_analysis/issues/9