Pyspark Cluster This is the barebone code for demonstration purpose. The code uses k-mode clustering algorithm on spark to cluster users into different groups.