This is another error when I am trying to split the balanced dataset into training and test set by 80% and 20% using the KNN model in Python. What is meant by the error given below?
y = ["TCGA.22.5482.LUSC.C1"]
x = Combined_data_df.drop(['features'],axis=1)
**KeyError** Traceback (most recent call last)
<ipython-input-68-9ee94240e101> in <module>
1 y = ["TCGA.22.5482.LUSC.C1"]
----> 2 x = Combined_data_df.drop(['features'],axis=1)
**KeyError: "['features'] not found in axis"**
What is meant by this error?
- How to work out the variables x and y
- How to decide which columns to drop