Sasha commited on
Commit
ca9634c
1 Parent(s): 14ce207

Changing aggrid back to dataframe, even if we can't make the width dynamic

Browse files
data_measurements/streamlit_utils.py CHANGED
@@ -285,17 +285,7 @@ def expander_text_duplicates(dstats, column_id):
285
  if dstats.dup_counts_df is None or dstats.dup_counts_df.empty:
286
  st.write("There are no duplicates in this dataset! 🥳")
287
  else:
288
- gb = GridOptionsBuilder.from_dataframe(dstats.dup_counts_df)
289
- gb.configure_column(
290
- f"text{column_id}",
291
- wrapText=True,
292
- resizable=True,
293
- autoHeight=True,
294
- min_column_width=85,
295
- use_container_width=True,
296
- )
297
- go = gb.build()
298
- AgGrid(dstats.dup_counts_df, gridOptions=go)
299
 
300
 
301
  def expander_npmi_description(min_vocab):
 
285
  if dstats.dup_counts_df is None or dstats.dup_counts_df.empty:
286
  st.write("There are no duplicates in this dataset! 🥳")
287
  else:
288
+ st.dataframe(dstats.dup_counts_df.reset_index(drop=True))
 
 
 
 
 
 
 
 
 
 
289
 
290
 
291
  def expander_npmi_description(min_vocab):