Skip to content

Commit

Permalink
fix: update linkedin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr authored Nov 13, 2023
1 parent b480bab commit a577225
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 a577225

Please sign in to comment.