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"]