Returns a Series indexed like the original Series. Raises TypeError if the Series does not contain datetimelike values.
Accessor object for datetimelike properties of the Series values.
>>> seconds_series = pd.Series(This example is valid syntax, but we were not able to check execution
... pd.period_range(
... start="2000-01-01 00:00:00", end="2000-01-01 00:00:03", freq="s"
... )
... )
... seconds_series 0 2000-01-01 00:00:00 1 2000-01-01 00:00:01 2 2000-01-01 00:00:02 3 2000-01-01 00:00:03 dtype: period[S]
>>> seconds_series.dt.second 0 0 1 1 2 2 3 3 dtype: int64This example is valid syntax, but we were not able to check execution
>>> hours_series = pd.Series(This example is valid syntax, but we were not able to check execution
... pd.period_range(start="2000-01-01 00:00", end="2000-01-01 03:00", freq="h")
... )
... hours_series 0 2000-01-01 00:00 1 2000-01-01 01:00 2 2000-01-01 02:00 3 2000-01-01 03:00 dtype: period[H]
>>> hours_series.dt.hour 0 0 1 1 2 2 3 3 dtype: int64This example is valid syntax, but we were not able to check execution
>>> quarters_series = pd.Series(This example is valid syntax, but we were not able to check execution
... pd.period_range(start="2000-01-01", end="2000-12-31", freq="Q-DEC")
... )
... quarters_series 0 2000Q1 1 2000Q2 2 2000Q3 3 2000Q4 dtype: period[Q-DEC]
>>> quarters_series.dt.quarter 0 1 1 2 2 3 3 4 dtype: int64See :
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