The neighbouring numbers (1, 9) are the default indexes of the series, which are part of data structure of series/array. The query selects the elements of the series which fulfils the condition, and the indexes show the positions of the selected elements in the series. So the output is essentially saying that X[1] and X[9] are the selected elements of the query. They can be useful if you want to do further operations with series sharing the same indexes.