Index.asof_locs(self, where, mask) [source]
Find the locations (indices) of the labels from the index for every entry in the where argument.
As in the asof function, if the label (a particular entry in where) is not in the index, the latest index label upto the passed label is chosen and its index returned.
If all of the labels in the index are later than a label in where, -1 is returned.
mask is used to ignore NA values in the index during calculation.
| Parameters: |
|
|---|---|
| Returns: |
|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Index.asof_locs.html