'The attribute 'children_' of Agglomerative clustering

I am writing a very basic program with observations not exceeding 20 values (X1 is the original dateset).

X1_test=X1_df.iloc[0:20,]
from sklearn.cluster import AgglomerativeClustering

ag= AgglomerativeClustering(n_clusters=6, affinity= 'euclidean', linkage='ward', compute_full_tree= True, compute_distances=True)

ag.fit(X1_test)

When I run the attribute ag.chilren_ the values come as 

array([[10, 13],
       [ 1,  6],
       [16, 18],
       [ 2, 19],
       [ 4, 20],
       [ 8, 15],
       [12, 23],
       [14, 21],
       [ 0, 17],
       [ 9, 26],
       [22, 27],
       [11, 24],
       [ 5, 29],
       [ 7, 25],
       [ 3, 28],
       [30, 31],
       [32, 35],
       [33, 36],
       [34, 37]], dtype=int64)

how come values in this output are coming more than 20 since i have only 20 observations?

Please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source