def create_polls_graph(df):
poll_id = df.POLL_ID.unique()[0]
title = df.POLL_QUESTION.unique()[0]
df = df.groupby(["POLL_RESULT"], as_index=False).agg({"PROFILE_ID": "count"})
df["VALUE"] = df["PROFILE_ID"] / df["PROFILE_ID"].sum() * 100
df["VALUE_D"] = df["VALUE"].map('{:.0f}%'.format)
voters = df.PROFILE_ID.sum()
title=f"{title}<br><span style='font-size: 13px;'>Total amount of votes: {voters}</span>",
"POLL_RESULT": "Options",
"PROFILE_ID": "Nb of votes",
fig.update_traces(marker_color='black')
font=dict(family="Arial", size=14, color="black"),
xaxis_showticklabels=False,
fig.write_html(f"{poll_id}.html")
asset = naas.asset.add(f"{poll_id}.html")