In [1]: import sqlite3
In [2]: import pandas as pd
In [3]: import numpy as np
In [4]: import matplotlib.pyplot as plt
In [5]: from sklearn.cluster import Kmeans
ImportError Traceback (most recent call last)
<ipython-input-5-0125bea01c25> in <module>()
----> 1 from sklearn.cluster import Kmeans
ImportError: cannot import name 'Kmeans'
Scikit-learn version is 0.18.2
It's just a typo. The "m" in KMeans should be capital:
from sklearn.cluster import KMeans
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With