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>
Gulp error report, assertionerror [err_ ASSERTION]: Task function must be specified
gulp.task('cssmin', async() => {
gulp.src(['./src/css/*.less', './src/css/*.css'])
.pipe(less())
.pipe(csso())
.pipe(gulp.dest('./dist/css'));
});
There are also hints in the error message:
The following tasks did not complete: default, < anonymous>
Did you forget to signal async completion?
Build the global task call to report an error, such as:
PS C:\Users\J\Desktop\demo\gulp-demo> Gulp assert. Js: 385
throw err;
^
AssertionError [ERR_ASSERTION]: Task function must be specified
at gulp. set [as _setTask] (C: Users\J\node_modules\ lib\set-task.js:10:3)
at gulp. Task (C: \ Users \ \ J node_modules \ undertaker \ lib \ task js: 8)
the at Object. & lt; anonymous> (C: \ Users \ \ Desktop \ demo \ J gulp – demo \ gulpfile js: 60:6)
at the Module. The _compile (internal/modules/CJS/loader. Js: 1176:30)
at the Object. The Module. _extensions.. Js (internal/modules/CJS/loader. Js: 1196:10)
at the Module. The load (internal/modules/CJS/loader. Js: 1040:32)
at the Function, the Module. _load (internal/modules/CJS/loader. Js: 929:14)
the at The Module. The require (internal/modules/CJS/loader. Js: 1080:19)
at the require (internal/modules/CJS/helpers. Js: 72:18)
at the execute (C:\Users\J\AppData\ NPM \node_modules\gulp-cli\lib\versioned\^4.0.0\index.js:36:18) {
generatedMessage: false,
code: ‘ERR_ASSERTION’,
actual: false,
expected: True,
operator: ‘= =’
}
Simply prefix the function name of the call with Gulp.Series
gulp.task('default', gulp.series(['htmlmin', 'cssmin', 'jsmin', 'copy', async(done) => done]))
div>
Solve selenium error — unknown error: devtoolsactivport file doesn’t exist
This post is posted on my personal blog: Selenium Error Reporting – Unknown Error DevToolsActivePort File doesn’t exist — Zhang0Peter’s personal blog
There was a problem launching Chrome with selenium on Linux in the morning:
error:
Traceback (most recent call last):
File "get2.py", line 62, in <module>
browser = webdriver.Chrome()
File "/root/.pyenv/versions/anaconda3-5.1.0/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "/root/.pyenv/versions/anaconda3-5.1.0/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/root/.pyenv/versions/anaconda3-5.1.0/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/root/.pyenv/versions/anaconda3-5.1.0/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 311, in execute
self.error_handler.check_response(response)
File "/root/.pyenv/versions/anaconda3-5.1.0/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 237, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.9.0-6-amd64 x86_64)
Solution:
plus code:
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument('--headless')
browser = webdriver.Chrome(chrome_options=chrome_options)
“– no-sandbox” parameter is to let Chrome run
“– headless” parameter is not to open the graphical interface
can add these parameters to get a better experience
chrome_options.add_argument('blink-settings=imagesEnabled=false')
chrome_options.add_argument('--disable-gpu')
div>
Solving syntax error: unexpected character after line continuation character
SyntaxError: Unexpected Character After Line Continuation Character error occurred in the.py file executing on Windows command line.
The python installation path is
:



. The reason for this error is that python does not exit the interpreter, but instead executes in the interpreter environment. Py file.
Note: the.py file can only be executed in command line mode. If you do not exit, you are in interactive mode, where you enter a line of code and execute it. It is good to test a statement.
Type exit() to exit, and drag the.py file into the command line window to see the results (successful).
Solution to ebios read error: error 0x31 when installing snow leopard on virtual machine
2019 Unicorn enterprise heavily recruited Python engineer standard & GT; > > ![]()
EBIOS read error :error 0x31 error solution
EBIOS read error :error 0x31
Open the virtual machine’s Settings-> For Hardware, go to the CD/DVD(IDE) device, or go to the CD icon in the VM window status bar, click Settings, and replace the Dardarwin. Iso with the DMG image of the MAC system. Tick the boxes “Connected” or “Connect”. After completion, press the letter C to boot the installation DISC and enter the system installation interface after completion. Done!
Reproduced in: https://my.oschina.net/caiyuan/blog/165623
Webpack 4 : ERROR in Entry module not found: Error: Can’t resolve ‘./src’
ERROR in Entry Module not found: ERROR: Can’t resolve ‘./ SRC ‘in’ E:\ Documents\VSCode files\WebPackProject ‘
Specify the inlet and outlet through the configuration file
Js (must be in the project root directory)
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
}
};
Not packaged by configuration file
By default, Webpack4 does not need to create webpack.config.js to configure the packaged entry and exit.
By default,
The entry is ./ SRC /index.js file
Exit to ./dist/main.js file
Directory structure:

Js is in the correct position. Run the command in the project root directory:
webpack
You are ready to pack.
So now you can see that under the project directory, dist folder, you’ll see the packaged file main.js;
In the HTML file index. HTML which needs to be introduced, it can be correctly introduced.

You can also specify it manually using the following command:
webpack./SRC /index.js -- output-filename. /dist/main.js --output-path. --mode development
or
webpack ./src/index.js -o ./dist/main.js --mode development
note:
, --mode development is the specified development mode, without which warning will be reported;
Another mode is --mode production specifies the production mode. In this mode, the packaged js file will be compressed, but the former will not.
Webpack will prompt a warning when executing directly from above. Closing the warning can be packaged by the following command:
webpack --mode development
or
webpack --mode production
`
Solution of grub loading error 17
After this kind of problem, there are many solutions, I will only talk about my practical operation of a relatively simple way.
Assuming you don’t have a cd-ROM drive, here’s how to do it:
(1) First of all, make a USB boot disk containing WinPE. You can go to the official website of the old peach to download the “WinPE-U disk version of the old peach”, and make your own USB boot disk with installation tips;
(2) Set the SYSTEM BIOS, adjust the startup sequence, and select USB-HDD;
(3) Download the MBR repair tool or PQ10.0 and put it on the U disk;
(4) Insert U disk, restart the computer, enter the WinPE system, use tools to repair your MBR under WinPE, such as open PQ10.0 in the toolbar there is a MBR repair, repair;
(5) Reset the BIOS, change the boot sequence, restart the computer.
After the above steps, you can boot up normally and enter your Windows system.
Error: the solution to the illegal character ‘\ ufeff’
There are many explanations on the Internet about the cause of the error, so I won’t repeat it here, but directly say the solution:
Using Notepad++ or similar software, convert to utf-8 bon-free coding format.
Scalac Helloworld.Scala again, OK.
Of course, the Java language has the same solution.
DB2 SQL error: sqlcode = – 803, sqlstate = 23505, sqlerrmc = 2 [solution]
1, check under, probably means to violate the uniqueness constraints ah!
2. However, I found in DB2 DESCRIBE table XX that only ID of the table cannot be empty.
3, finally, directly wrote a SQL execution on the command line, the same error and code
Finally, I looked up the index in the following table and realized that a composite index had been created.
It turns out that the DBA created a unique constraint and index yesterday!
Although only ID cannot be null in a describe, the addition of a unique constraint and index results in the inability to insert data.
Error: MySQL shutdown unexpectedly
Reproduced in: https://blog.csdn.net/yuer_xiao/article/details/79236719
XAMPP, which was just installed yesterday, has been tested and MYSQL can be started. Then today when I was running XAMPP, I suddenly realized that MYSQL couldn’t start.

Use the administrator to start the command line, enter net Start mysql, also did not succeed, the prompt message is
The service name is not valid. Please type NET HELPING 2185 for more help
1. Add one in mysql/bin/my.ini file:
[mysqld]
innodb_force_recovery = 4
2. Delete the IBDATa1 file under xAMPP \mysql\ Data
3. Start the command line with the administrator, enter the bin directory of mysql, and input
Mysqld –install, enter,
1. Service Successfully Installed,
Indicates successful installation of MySQL service.
Command line window input: Net Start mysql, can start normally.
The procedure is this procedure but I have already succeeded in this screenshot, so it is a little different from what I said.

The mysql service should start without any problems.
4. Or restart the command line with the administrator and reinstall XAMPP
Enter SC DELETE mysql
Remove mysql service
Reinstall XAMPP
You can use it normally
Error building player because scripts have compile errors in the editor
Error building Player because scripts have compile errors in the editor
And then there are no other mistakes, just like many students who have encountered the same problem, first baidu, Most of the answers are using UnityEditor; As a result of
But for this big project, a script using UnityEditor is killing people. Though I did seek it out, it was not for that reason
Later, I shut unity down and restarted the computer (network management style). When I opened Unity again, there was no longer only one error in the build.
Find the corresponding error point after all the corrections, the successful compilation.
About error 1005 (HY000) in MySQL: can’t create table ‘_______ ‘(errno: 150) fool’s plan
I had this problem when I was building my watch today
Baidu checked many answer (including CSDN)
many bosses from the Angle of the InnoDB to solve, what say what type of master-slave table
white
I really can’t understand later widely verification
to find the problem in MySQL and SQL server syntax differences
when define a foreign key, MySQL must be outside the parentheses indicate the key attributes, otherwise an error will be submitted to the above
Ex. :
Create table course(course_id varchar(8),title varchar(50),dept_name varchar(20),credits numeric(2,0) check(credits> 0),primary key(course_id),foreign key(dept_name) references department on delete cascade);
will error create table course(course_id varchar(8),title varchar(50),dept_name varchar(20),credits numeric(2,0) check(credits> 0),primary Key (course_ID), Foreign Key (DEPT_name) REFERENCES Department (DEPt_name) on delete cascade);
executes normally