Skip to content

Commit

Permalink
add magnitude bar graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaduke committed Oct 25, 2020
1 parent e5db97f commit d7147e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kmeansmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def make_list_of_K(K, dataframe):
"cluster_name": "Customer Group Magnitude"},
inplace=True)

# cardinality_df
st.dataframe(cardinality_df)

fig_bar = px.bar(cardinality_df, x="Customer Groups",
y="Customer Group Magnitude",
Expand All @@ -394,6 +394,8 @@ def make_list_of_K(K, dataframe):
tick0=1000,
dtick=1000))

st.plotly_chart(fig_bar)


def main():
st.sidebar.header('User Input Features')
Expand Down

0 comments on commit d7147e3

Please sign in to comment.