Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,10 @@ st.info(
|
|
| 32 |
|
| 33 |
st.title("Des insights par sujet")
|
| 34 |
df_info = pd.read_csv("data/topics_info.csv", index_col=[0])
|
| 35 |
-
df_info = df_info[["
|
| 36 |
df_info["percent"] = df_info["percent"].apply(lambda x: str(int(x)) + "%")
|
| 37 |
df_info = df_info.reset_index(drop=True)
|
|
|
|
| 38 |
|
| 39 |
st.dataframe(df_info, use_container_width=True)
|
| 40 |
|
|
|
|
| 32 |
|
| 33 |
st.title("Des insights par sujet")
|
| 34 |
df_info = pd.read_csv("data/topics_info.csv", index_col=[0])
|
| 35 |
+
df_info = df_info[["topic_name", "size", "percent"]]
|
| 36 |
df_info["percent"] = df_info["percent"].apply(lambda x: str(int(x)) + "%")
|
| 37 |
df_info = df_info.reset_index(drop=True)
|
| 38 |
+
df_info.columns = ['Sujet', 'taille', 'Pourcentage d\'articles dans ce sujet' ]
|
| 39 |
|
| 40 |
st.dataframe(df_info, use_container_width=True)
|
| 41 |
|