i am new to kmeans clustering method. i try to cluster a 1 dimension string array data in python.
Below is my data:
expertise=['
Bioactive Surfaces and Scaffolds for Regenerative Medicine',
'Drug/gene delivery science',
'RNA nanomedicine', 'Immuno/bio/nano-engineering', 'Biomaterials', 'Nanomedicine',
'Biobased Chemicals and Polymers',
'Membranes Science & Technology',
'Modeling of Infectious and Lifestyle-related Diseases']
km = KMeans(n_clusters=2)
km.fit(expertise)
and i get ValueError: could not convert string to float:
so i wonder how to apply kmeans on string data or is there any way i can change the data to two dimension?