MAINT: avoid indexing with a float array
Merge pull request #3759 from argriffing/theilslopes-indexing

MAINT: avoid indexing with a float array