# Clustering data using KMeans centroids of base period for pattern analysis

I have a data frame consisting of 12 months of Customer Transaction Level Data. The data is unsupervised. The data is divided into 6 sets of 2 months period each. Taking first period as the base, I am doing cluster analysis and then checking the pattern of those clusters in the next 5 sets of 2 months each. After applying PCA, I used Silhouette Analysis using KMeans to determine the optimum number of clusters. For example, I have 2 clusters applied on KMeans for my data 'PCAData'. The cluster centers I can get from 'cluster_centers_'. Also, I got the two cluster centroid coordinates [x,y] from the 'centers' object.

clusterer = KMeans(n_clusters=2, random_state=10)