In this post, I will cluster the plays I read using K-Modes clustering algorithm.
KModes clustering is one of the unsupervised Machine Learning algorithms that is used to cluster categorical variables.
Implementation of KModes in Python
#importing necessary libraries
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
import matplotlib.pyplot as plt
#pip install kmodes
from kmodes.kprototypes import KPrototypes
from kmodes.kmodes import KModes
df=pd.read_csv(“plays.csv”)
df.head()