Cluster Analysis in Python

I’m want to reproduce codes here Clustering analysis for more than two features but i keep having error message every time i try. How can deal with this please.

**from sklearn.datasets import make_blobs**

# create dataset
X, y = make_blobs(
** n_samples=200, n_features=3,**
** centers=3, cluster_std=0.5,**
** shuffle=True, random_state=0**

# plot
plt.figure(figsize=(10, 10))
** X[:, 0], X[:, 1], X[:, 2],**
** c=‘white’, marker=‘o’,**
** edgecolor=‘black’, s=50**


TypeError Traceback (most recent call last)
13 X[:, 0], X[:, 1], X[:, 2],
14 c=‘white’, marker=‘o’,
—> 15 edgecolor=‘black’, s=50
16 )
17 plt.grid()

TypeError: scatter() got multiple values for argument ‘s’

Hi! Thanks for reaching out. I believe this may be your issue -

This function takes in two args before the keyword args:
scatter(x, y, s=20, …)
And you are passing in three, so you are specifying s twice (once implicitly and once explicitly).

It looks like you also have three args before the keyword args. Let me know if this helps!

Thank you so much @lorraine, it does help. But is it possible to pass more than two argument?