0

I can load the iris dataset, etc.

from sklearn.datasets import load_iris
iris = load_iris()

How do I load my own .csv file into a Bunch object?

nicomp
  • 4,344
  • 4
  • 27
  • 60
  • maybe duplication? https://stackoverflow.com/questions/11023411/how-to-import-csv-data-file-into-scikit-learn – Sezer BOZKIR Dec 05 '22 at 14:40
  • Not the same. That question, and all the answers, load into a DataFrame rather than a Bunch object. – nicomp Dec 05 '22 at 14:47
  • Okay, did you see this? https://stackoverflow.com/questions/20485592/how-do-i-create-a-sklearn-datasets-base-bunch-object-in-scikit-learn-from-my-own – Sezer BOZKIR Dec 05 '22 at 14:52
  • 1
    I think that clears it up. I voted to close it. Thank you for the reference. This discussion, to me, calls into question the value of those ubiquitous tutorials that start with the toy datasets in a Bunch format. – nicomp Dec 05 '22 at 15:38

0 Answers0