如何解决filter() got an unexpected keyword argument 'pick_types'
时间: 2023-10-02 14:13:40 浏览: 58
这个错误通常是由于函数中使用了不支持的参数引起的。具体来说,是因为 filter() 函数不支持 pick_types 参数。
解决这个问题的方法是检查你的代码,看一下是否使用了 pick_types 参数。如果是的话,你可以考虑使用其他函数或者方法来完成你的需求。
如果你使用的是第三方库,那么你需要查看该库的文档,看看是否存在类似的函数或方法可以替代 filter() 函数,并支持 pick_types 参数。
如果你无法找到合适的解决方案,你可以考虑自己编写一个函数来完成你的需求。
相关问题
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.
阅读全文