Spaces:
Sleeping
Sleeping
nataliaElv
commited on
Commit
Β·
842bf87
1
Parent(s):
086fa02
Links first
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ with col2:
|
|
| 102 |
st.metric("Results:", updated_issues.shape[0])
|
| 103 |
|
| 104 |
st.dataframe(
|
| 105 |
-
updated_issues[["Issue","Labels", "Repository", "Last update"
|
| 106 |
hide_index=True,
|
| 107 |
# use_container_width=True,
|
| 108 |
column_config={
|
|
@@ -122,7 +122,7 @@ with col2:
|
|
| 122 |
stale_issues = open_issues[pd.to_datetime(open_issues["Last update"]).dt.tz_localize(None) < pd.to_datetime(not_updated_since)]
|
| 123 |
st.metric("Results:", stale_issues.shape[0])
|
| 124 |
st.dataframe(
|
| 125 |
-
stale_issues[["Issue","Labels", "Repository", "Last update"
|
| 126 |
hide_index=True,
|
| 127 |
# use_container_width=True,
|
| 128 |
column_config={
|
|
@@ -152,12 +152,12 @@ with col1:
|
|
| 152 |
label_counts['Link'] = generate_labels_link(label_counts['Labels'],label_counts['Repository'])
|
| 153 |
|
| 154 |
st.dataframe(
|
| 155 |
-
label_counts[["Labels","Repository", "count",
|
| 156 |
hide_index=True,
|
| 157 |
column_config={
|
| 158 |
"Labels": st.column_config.TextColumn("Labels"),
|
| 159 |
"count": st.column_config.NumberColumn("Count"),
|
| 160 |
-
"Link": st.column_config.LinkColumn("
|
| 161 |
}
|
| 162 |
)
|
| 163 |
|
|
@@ -177,7 +177,7 @@ st.header("Community engagement")
|
|
| 177 |
# ## Dataframe: Latest issues open by the community
|
| 178 |
# ## Dataframe: issues sorted by number of comments
|
| 179 |
st.subheader("Top engaging issues π¬")
|
| 180 |
-
engagement_df = open_issues[["Issue","Repository","
|
| 181 |
st.dataframe(
|
| 182 |
engagement_df,
|
| 183 |
hide_index=True,
|
|
|
|
| 102 |
st.metric("Results:", updated_issues.shape[0])
|
| 103 |
|
| 104 |
st.dataframe(
|
| 105 |
+
updated_issues[["URL","Issue","Labels", "Repository", "Last update"]].sort_values(by="Last update", ascending=False),
|
| 106 |
hide_index=True,
|
| 107 |
# use_container_width=True,
|
| 108 |
column_config={
|
|
|
|
| 122 |
stale_issues = open_issues[pd.to_datetime(open_issues["Last update"]).dt.tz_localize(None) < pd.to_datetime(not_updated_since)]
|
| 123 |
st.metric("Results:", stale_issues.shape[0])
|
| 124 |
st.dataframe(
|
| 125 |
+
stale_issues[["URL","Issue","Labels", "Repository", "Last update"]].sort_values(by="Last update", ascending=True),
|
| 126 |
hide_index=True,
|
| 127 |
# use_container_width=True,
|
| 128 |
column_config={
|
|
|
|
| 152 |
label_counts['Link'] = generate_labels_link(label_counts['Labels'],label_counts['Repository'])
|
| 153 |
|
| 154 |
st.dataframe(
|
| 155 |
+
label_counts[["Link","Labels","Repository", "count",]].head(10),
|
| 156 |
hide_index=True,
|
| 157 |
column_config={
|
| 158 |
"Labels": st.column_config.TextColumn("Labels"),
|
| 159 |
"count": st.column_config.NumberColumn("Count"),
|
| 160 |
+
"Link": st.column_config.LinkColumn("π", display_text="π")
|
| 161 |
}
|
| 162 |
)
|
| 163 |
|
|
|
|
| 177 |
# ## Dataframe: Latest issues open by the community
|
| 178 |
# ## Dataframe: issues sorted by number of comments
|
| 179 |
st.subheader("Top engaging issues π¬")
|
| 180 |
+
engagement_df = open_issues[["URL","Issue","Repository","Created at", "Reactions","Comments"]].sort_values(by=["Reactions", "Comments"], ascending=False).head(10)
|
| 181 |
st.dataframe(
|
| 182 |
engagement_df,
|
| 183 |
hide_index=True,
|