andyletzhang / SwatGrains

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize sort_particles()

andyletzhang opened this issue · comments

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.