Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid potentially expensive
len()
call in value index estimation.
Instead iterate over unique values and break if we can get more than `MAX_DISTINCT_VALUES` values. Also correctly identify empty indexes like the DateRangeIndex, which only returns values when the name argument is provided to the uniqueValues method with either the `since` or `until` field.
- Loading branch information