Skip to content

Commit

Permalink
Merge pull request #381 from jupyter-naas/fix-dtype-error-on-views
Browse files Browse the repository at this point in the history
fix: update linkedin.py
  • Loading branch information
FlorentLvr authored Nov 13, 2023
2 parents b480bab + a577225 commit 7989884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naas_drivers/tools/linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ def get_posts_feed(
df["VIEWS"] = df.apply(
lambda row: self.__get_posts_views(row.ACTIVITY_ID), axis=1
)
df["ENGAGEMENT_SCORE"] = 0
df["ENGAGEMENT_SCORE"] = 0.
df.loc[df["VIEWS"] != 0, "ENGAGEMENT_SCORE"] = (
df["COMMENTS"] + df["LIKES"]
) / df["VIEWS"]
Expand Down

0 comments on commit 7989884

Please sign in to comment.