pandas 1.4.2

ParametersRaisesReturnsBackRef
at_time(self: 'NDFrameT', time, asof: 'bool_t' = False, axis=None) -> 'NDFrameT'

Parameters

time : datetime.time or str
axis : {0 or 'index', 1 or 'columns'}, default 0

Raises

TypeError

If the index is not a DatetimeIndex

Returns

Series or DataFrame

Select values at particular time of day (e.g., 9:30AM).

See Also

DatetimeIndex.indexer_at_time

Get just the index locations for values at particular time of the day.

between_time

Select values between particular times of the day.

first

Select initial periods of time series based on a date offset.

last

Select final periods of time series based on a date offset.

Examples

This example is valid syntax, but we were not able to check execution
>>> i = pd.date_range('2018-04-09', periods=4, freq='12H')
... ts = pd.DataFrame({'A': [1, 2, 3, 4]}, index=i)
... ts A 2018-04-09 00:00:00 1 2018-04-09 12:00:00 2 2018-04-10 00:00:00 3 2018-04-10 12:00:00 4
This example is valid syntax, but we were not able to check execution
>>> ts.at_time('12:00')
                     A
2018-04-09 12:00:00  2
2018-04-10 12:00:00  4
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.core.generic.NDFrame.between_time pandas.core.generic.NDFrame.last pandas.core.generic.NDFrame.first

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/generic.py#7706
type: <class 'function'>
Commit: