+ 2
How to find the python for data science course last project 'pandas pandas pandas'
I left it for solving it a next time but I'm not able to find it now.
2 Antworten
0
There is no such project, at least anymore. Sololearn has being updated, and that project might have being replaced with another one. Currently the last project for pandas in that course is "Covid 19 Data analysis".
0
#This code goves the correct answer to pandas pandas pandas but it has extra brackets
n = int(input())
import pandas as pd
data=[]
for i in range(n):
data.append([float(i)for i in input().split()])
from sklearn.cluster import KMeans
kmeans = KMeans(n_clusters=2)
kmeans.fit(data)
kmeans.predict(data)
print(kmeans.cluster_centers_)