Machine Learning, Artificial Intelligence, Technology, Python, Data Science.
import numpy as np import pandas as pd # creating data for K-Means Clustering df = np.random.randint(0,10,size = [100,2]) X1 = np.random.randint(0,4,size = [300,1]) X2 = np.random.uniform(0,10,size = [300,1]) df = np.append(X1,X2,axis = 1) Clustered_df = KMeans_Algorithm(df = df,K =4) df =