pandas.TimedeltaIndex.to_series
pandas 3.1.1 · Index objects · method
Build a Series from the index values, using the original labels by default.
Call syntax
TimedeltaIndex.to_series(index=None, name=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
index |
Optional Positional or keyword Default None |
Index or array-like Supply row labels or control how existing row labels are used. |
name |
Optional Positional or keyword Default None |
str Set a name or identify the named object used by the operation. |
Returns
Series