Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use RangeIndex in nodes dataframe and improve _check_id (#207)
If the index is a regular index, when accessing df.loc[x] for the first time (when x is an array, and not an integer), Pandas calls the cached property Index.is_unique, that can take a few seconds with big dataframes: Using a RangeIndex solves the issue, because is_unique is always True.
- Loading branch information