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

除法导致的 RuntimeWarning: invalid value encountered in long_scalars #17

Open
bestony opened this issue Oct 2, 2018 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bestony
Copy link
Member

bestony commented Oct 2, 2018

/Users/bestony/Code/cli/grank/grank/script/social.py:46: RuntimeWarning: invalid value encountered in long_scalars
  social_df["score"] = social_df.apply(lambda row: row.community_member / row.all_member  , axis=1)

social_df["score"] = social_df.apply(lambda row: row.community_member / row.all_member , axis=1)

@bestony bestony closed this as completed in 22988c4 Oct 2, 2018
@bestony
Copy link
Member Author

bestony commented Oct 2, 2018

此问题需要持续关注,暂时使用

import warnings
warnings.filterwarnings('ignore')

进行了 workaround ,开发时需要去除这两行代码。

@bestony bestony reopened this Oct 2, 2018
@bestony bestony added bug Something isn't working help wanted Extra attention is needed labels Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant