Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created September 12, 2022 11:31
Show Gist options
  • Save Abhayparashar31/d4d27b296563ed1f84e146095b9d695f to your computer and use it in GitHub Desktop.
Save Abhayparashar31/d4d27b296563ed1f84e146095b9d695f to your computer and use it in GitHub Desktop.
def plot_connections_overtime(df):
temp = get_connectios_count_df(df)
temp["cum_sum"] = temp["count"].cumsum()
fig = px.area(temp, x="connected_on", y="cum_sum",labels={
"connected_on":'Date',
"count":'Number of Connections'
})
return fig
plot_connections_overtime(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment