code: def _check_timeindex(self, timeseries):
          
          try:
              timeseries.loc[self.edisgo.network.timeseries.timeindex]
          except:
              message = 'Time index of storage time series does not match ' \
                        'with load and feed-in time series.'
              logging.error(message)
              raise KeyError(message)
docs: Raises an error if time index of storage time series does not
          comply with the time index of load and feed-in time series.
  
          Parameters
          -----------
          timeseries : :pandas:`pandas.DataFrame<dataframe>`
              DataFrame containing active power the storage is charged (negative)
              and discharged (positive) with in kW in column 'p' and
              reactive power in kVA in column 'q'.