SpectralState.to_pandas#

SpectralState.to_pandas(*, index=None)[source]#

The scalar coordinates as a pandas.DataFrame.

One column per key of to_dict(), nobs rows, the index named obs.

Parameters:

index (ArrayLike | None) – Optional row index of length nobs, typically the dates of the path rows (dates[-state.nobs:]).

Return type:

DataFrame

Returns:

The frame.

Raises:

ImportError – If pandas is not installed; install ns-sdn[pandas].