O'Reilly logo
  • Som DUBEY thinks this is interesting:

index0 = np.where(data_us.index=='1960')[0][0] index1 = np.where(data_us.index=='2010')[0][0]

From

Cover of Practical Time Series Analysis

Note

why we are using two square brackets here?