Table Of Contents

Search

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

pandas.TimedeltaIndex.to_frame

TimedeltaIndex.to_frame(index=True)[source]

Create a DataFrame with a column containing the Index.

New in version 0.21.0.

Parameters:

index : boolean, default True

Set the index of the returned DataFrame as the original Index.

Returns:

DataFrame : a DataFrame containing the original Index data.

Scroll To Top