save() got an unexpected keyword argument 'formatting_info'
时间: 2023-07-30 12:08:19 浏览: 26
这个错误通常发生在使用较新版本的xlwt库时,因为该库已经不再支持`formatting_info`参数。
如果你需要使用`formatting_info`参数,可以尝试使用旧版本的xlwt库,或者使用其他支持该参数的库,如openpyxl。
另外,你也可以尝试将代码中的`formatting_info`参数删除,如果不需要该参数的话。
相关问题
make_classification() got an unexpected keyword argument '_redundant'
As an AI language model, I cannot see the code you are referring to. However, I can explain the error message you provided.
The error message "make_classification() got an unexpected keyword argument '_redundant'" usually occurs when you are trying to pass an invalid argument to the scikit-learn function make_classification(). The argument '_redundant' is not a valid argument for this function, so the function is raising an error.
To fix this error, you should check the documentation for the make_classification() function to see what arguments are valid, and make sure that you are passing only valid arguments. If you are still unsure what is causing the error, you can try posting your code and the full error message on a forum or Q&A site for help from other programmers.
__init__() got an unexpected keyword argument background_color
This error message usually occurs when you pass an unexpected keyword argument to a function or a class constructor.
In this case, it seems that you are trying to pass a `background_color` argument to the `__init__()` method of a class, but this class does not expect or support this argument.
To resolve this issue, you need to check the documentation or source code of the class to see which arguments it supports, and make sure that you are passing the correct arguments. Alternatively, you can modify the class to support the new argument if necessary.