pandas.DatetimeIndex.indexer_at_time#
- DatetimeIndex.indexer_at_time(time, asof=False)[源代码]#
返回值在一天中的特定时间(例如上午9:30)的索引位置。
- 参数
- time日期时间.time或字符串
时间作为对象(Datetime.time)或以适当格式的字符串(“%H:%M”、“%H%M”、“%I:%M%p”、“%I%M%p”、“%H:%M:%S”、“%I:%M:%S%p”、“%I%M%S%p”)传入。
- 退货
- np.ndarray[np.intp]
参见
indexer_between_time
获取一天中特定时间之间的值的索引位置。
DataFrame.at_time
选择一天中特定时间的值。