pypsa.Network.snapshots#
- property Network.snapshots: Index | MultiIndex#
Snapshots dimension of the network.
If snapshots are a pandas.MultiIndex, the first level are investment periods and the second level are timesteps. If snapshots are single indexed, the only level is timesteps.
- Returns:
Snapshots of the network, either as a single index or a multi-index.
- Return type:
pd.Index or pd.MultiIndex
See also
pypsa.networks.Network.timesteps
Get the timestep level only.
pypsa.networks.Network.periods
Get the period level only.
Notes
Note that Snapshots are a dimension, while timesteps and and periods are only levels of the snapshots dimension, similar to coords in xarray. This is because timesteps and periods are not necessarily unique or complete across snapshots.