The index argument of sort_index has type int64. I suggest that the sort_index interface be extended so that an index argument of type int32 is also supported. I understand that int64 was chosen to accommodate very large arrays, but it in most cases int32 is sufficient, and many programmers use default integers. The current interface trips people up, for example here and here.
The
index
argument ofsort_index
has typeint64
. I suggest that thesort_index
interface be extended so that anindex
argument of typeint32
is also supported. I understand thatint64
was chosen to accommodate very large arrays, but it in most casesint32
is sufficient, and many programmers use default integers. The current interface trips people up, for example here and here.