select_dtypes() got an unexpected keyword argument 'numeric_only'
时间: 2023-10-03 18:10:37 浏览: 136
判断只能输入数字
The error message "select_dtypes() got an unexpected keyword argument 'numeric_only'" indicates that you are using a version of pandas that does not support the `numeric_only` parameter in the `select_dtypes()` function.
The `numeric_only` parameter was added in pandas version 1.2.0, so if you are using an older version of pandas, you will need to upgrade to a newer version to use this parameter.
If you are already using a newer version of pandas and still encountering this error, make sure that you are spelling the parameter correctly and that you are using it within the `select_dtypes()` function. If the error persists, try restarting your kernel or updating your pandas installation.
阅读全文