pandas.DatetimeIndex.to_frame
- DatetimeIndex.to_frame(index=True, name=<no_default>)
Create a DataFrame with a column containing the Index.
- Parameters:
- index : bool, default True
Set the index of the returned DataFrame as the original Index.
- name : object, defaults to index.name
The passed name should substitute for the index name (if it has one).
- Returns