pandas.Index.asof
pandas 3.1.1 · Index objects · method
Look up the last usable observation at or before the requested label.
Call syntax
Index.asof(label)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
label |
Required Positional or keyword |
object Provide the label used to identify an entry or mark a result. |
Returns
object