# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

from pyspark.mllib.clustering import KMeans, KMeansModel
from numpy import array
from math import sqrt 
from pyspark import SparkContext, SparkConf
conf = SparkConf().setAppName("Kmaens")
sc = SparkContext(conf=conf)

data = sc.textFile('/Users/nikhilkc/Documents/GitHub/big-data-computing/learn/iris.csv')

data.show()



StarcoderdataJupyterScriptsDedupFiltered