LCTT/Grank

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

Open

#17 opened on Oct 2, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (37 forks)user submission
bughelp wanted

Repository metrics

Stars
 (237 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

/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)

https://github.com/LCTT/Grank/blob/7b00abb67f1c0dde18ddb3ac8da2046f722e3444/grank/script/social.py#L46

Contributor guide