|
@@ -86,7 +86,7 @@ def cal_account_read_rate(article_list, fans_dict) -> DataFrame:
|
|
|
if fans > const.MIN_FANS:
|
|
|
line['readRate'] = line['show_view_count'] / fans if fans else 0
|
|
|
response.append(line)
|
|
|
- return DataFrame(response, columns=['ghId', 'accountName', 'ItemIndex', 'show_view_count', 'publish_timestamp', 'fans', 'readRate'])
|
|
|
+ return DataFrame(response, columns=['ghId', 'accountName', 'ItemIndex', 'show_view_count', 'publish_timestamp', 'readRate'])
|
|
|
|
|
|
|
|
|
def cal_avg_account_read_rate(df, gh_id, index, dt) -> dict:
|