After data cleaning with packages like Numpy and Pandas, the corresponding columns in dataframe will be fed into models such as neural network or SVM as features or labels for model training. During this process, errors as shown in the question are likely to be encountered, such as:
X=data[features]
Y=data['6A']
The error was reported as follows:
was modified as follows:
X=data.iloc[:,1:21
div>
Read More:
- Keyerror: “year not in index”
- On set in pandas_ Index and reset_ Usage of index
- Methods of modifying index and columns names by dataframe in pandas
- Reintex index of pandas
- Installing R’s “mvtnorm” package in Windows system: solving the problem of the R package “mvtnorm” is not installed
- Solving the problem of joi. Validate is not a function
- Duplicate class com.xxx.xxx Find in modules problem solving (Aidl interdependence problem)
- Solving the problem of NameError: name ‘reload’ is not defined
- “NPM err! Error: eperm: operation not permitted” problem solving
- Solving the problem of Chinese garbled code in qtring
- write error in swap file problem solving
- Problem solving of failed to read candidate component class in Java
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Solving the problem of saving object set by save() function in R language
- Idea error: (4, 46) Java: package org.springframework.boot . autoconfigure does not exist problem solving
- Converting string object into datetime type in pandas
- [unable to calculate item metadata “% (fullpath)” unable to apply item metadata “% (fullpath)” to path] problem solving
- [Solved] Es delete all the data in the index without deleting the index structure, including curl deletion
- [DRC nstd-1] problem solving of vivado error problem
- Spring boot problem solving record (1)