Optimize sort_particles()
andyletzhang opened this issue · comments
andyletzhang commented
Pretty simple: this function builds DataFrames in a memory-inefficient way. To build a DataFrame iteratively, put values in a list and call pd.DataFrame() or pd.concat() once at the end.