SpectralState.to_pandas#
- SpectralState.to_pandas(*, index=None)[source]#
The scalar coordinates as a
pandas.DataFrame.One column per key of
to_dict(),nobsrows, the index namedobs.- Parameters:
index (
ArrayLike|None) – Optional row index of lengthnobs, typically the dates of the path rows (dates[-state.nobs:]).- Return type:
- Returns:
The frame.
- Raises:
ImportError – If pandas is not installed; install
ns-sdn[pandas].