code: def series_index(self, series):
          
          for idx, s in enumerate(self):
              if series is s:
                  return idx
          raise ValueError('series not in chart data object')
docs: Return the integer index of *series* in this sequence.