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

热度分析2根据主题求均值报错raise TypeError(f"Could not convert string '{x}' to numeric")但是根据话题求平均值就没错 #30

Open
code-ok opened this issue Apr 4, 2024 · 2 comments

Comments

@code-ok
Copy link

code-ok commented Apr 4, 2024

热度分析1的结果是
image
热度分析2分析结果1时,data_df = data.groupby(by='主题').mean() 根据主题求均值就报错了,请问是热度分析1的结果是错的吗,还是应该用话题求平均值

@code-ok
Copy link
Author

code-ok commented Apr 4, 2024

是不是应该先删除话题列,再根据主题分组求平均值呢

@stay-leave
Copy link
Owner

可能是话题字段的原因?有空值

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

No branches or pull requests

2 participants