index where, first_index_where, first_value_where, first_valid_value #4616
Labels
API Design
Closing Candidate
May be closeable, needs more eyeballs
Enhancement
Indexing
Related to indexing on series/frames, not to indexes themselves
I've thrown in a few functions which I think are similar (but I've seen a few times asked about). e.g. this SO question.
User wants to get the index where a criteria is true:
I guess the usual way is to use:
Or as @jreback suggests (in this simple example):
Perhaps there should be some methods to grab these out efficiently (i.e. short-circuit in cython)... maybe it makes more sense to have a crit function rather than a mask.
cc @cpcloud
also similar to idxmax and idxmin.
The text was updated successfully, but these errors were encountered: