hacpdsae2023 commited on
Commit
88cd79e
1 Parent(s): b4efb6d

Fix data into bar char

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,5 +114,5 @@ st.write(str(nx.laplacian_centrality(G)))
114
  d_lc = nx.laplacian_centrality(G)
115
  #st.write(d_lc[0])
116
  #df_lc = pd.DataFrame.from_dict(nx.laplacian_centrality(G))
117
- df_lc = pd.DataFrame(np.transpose([list(d_lc.keys()),list(d_lc.values())]),columns=['node','laplacian centrality'])
118
- st.bar_chart(df_lc)
 
114
  d_lc = nx.laplacian_centrality(G)
115
  #st.write(d_lc[0])
116
  #df_lc = pd.DataFrame.from_dict(nx.laplacian_centrality(G))
117
+ df_lc = pd.DataFrame(np.transpose([list(d_lc.keys()),list(d_lc.values())]),columns=['node','laplacian_centrality'])
118
+ st.bar_chart(df_lc,x='node',y='laplacian_centrality')