I there. I just started with the machine learning with a simple example to try and learn. So, I want to classify the files in my disk based on the file type by making use of
A Simple solution that reshapes it automatically is instead of using:
X=dataset.iloc[:, 0].values
You can use:
X=dataset.iloc[:, :-1].values
that is if you only have two column and you are trying to get the first one the code gets all the column except the last one