microsoft / python-sklearn-clustering-cookiecutter

Cookiecutter template for testing Python scikit-learn clustering learners.
MIT License
14 stars 13 forks source link

TypeError: an integer is required (got type bytes) #2

Open Pansw opened 5 years ago

Pansw commented 5 years ago

Using code as is without any changes. Not sure what is a problem. Provided data appear correct: URL = "http://mlr.cs.umass.edu/ml/machine-learning-databases/water-treatment/water-treatment.data" I tried to uncomment on line 130 frame[frame.isnull()] = 0.0 Output I am getting:

Downloading data from http://mlr.cs.umass.edu/ml/machine-learning-databases/water-treatment/water-treatment.data
Processing 527 samples with 38 attributes
Traceback (most recent call last):
  File "C:\Users\akarasin\Source\Repos\PythonClusteringApplication1\clustering.py", line 301, in <module>
    X = get_features(frame)
.
.
.
TypeError: an integer is required (got type bytes)

Any ideas?

aaz000966 commented 3 years ago

apparently, the file has been moved! try: URL = 'https://archive.ics.uci.edu/ml/machine-learning-databases/water-treatment/water-treatment.data'