From a57722511f7010eb19c753a33048d9e26f6c446a Mon Sep 17 00:00:00 2001 From: FlorentLvr <48032461+FlorentLvr@users.noreply.github.com> Date: Mon, 13 Nov 2023 09:35:40 +0100 Subject: [PATCH] fix: update linkedin.py --- naas_drivers/tools/linkedin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naas_drivers/tools/linkedin.py b/naas_drivers/tools/linkedin.py index 3574fab2..7cde50b8 100644 --- a/naas_drivers/tools/linkedin.py +++ b/naas_drivers/tools/linkedin.py @@ -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"]