Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.DatetimeIndex.asof

DatetimeIndex.asof(label)[source]

For a sorted index, return the most recent label up to and including the passed label. Return NaN if not found.

See also

get_loc
asof is a thin wrapper around get_loc with method=’pad’
Scroll To Top