Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新 pandas.md。对高版本Pandas库适配 #1331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yssickjgd
Copy link

由于旧版Pandas库在对inputs执行mean()方法时,会跳过不可计算的类型,从而忽略报错直接计算出数据;而高版本pandas库会对数据类型进行严格检查,从而触发报错“TypeError: can only concatenate str (not "int") to str”。修正后的代码将对数据类型进行筛选并计算,规避报错内容

由于旧版Pandas库在对inputs执行mean()方法时,会跳过不可计算的类型,从而忽略报错直接计算出数据;而高版本pandas库会对数据类型进行严格检查,从而触发报错“TypeError: can only concatenate str (not "int") to str”。修正后的代码将对数据类型进行筛选并计算,规避报错内容
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant