jsulz HF staff commited on
Commit
51ba302
1 Parent(s): 0922060

removing empty extensions from area chart

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -66,6 +66,9 @@ def process_dataset():
66
 
67
  # drop nas from the extension column
68
  file_extensions = file_extensions.dropna(subset=["extension"])
 
 
 
69
 
70
  return (
71
  repo_by_size_df,
@@ -449,7 +452,6 @@ with gr.Blocks(theme="citrus") as demo:
449
  )
450
  # Get the top 10 file extensions by size
451
  by_extension_size = by_extension.sort_values(by="size", ascending=False).head(22)
452
-
453
  # make a bar chart of the by_extension_size dataframe
454
  gr.Plot(plot_total_sum(by_extension_size[["extension", "size"]].values))
455
  # drop the unnamed: 0 column
 
66
 
67
  # drop nas from the extension column
68
  file_extensions = file_extensions.dropna(subset=["extension"])
69
+ file_extensions_by_month = file_extensions_by_month[
70
+ file_extensions_by_month["extension"] != ""
71
+ ]
72
 
73
  return (
74
  repo_by_size_df,
 
452
  )
453
  # Get the top 10 file extensions by size
454
  by_extension_size = by_extension.sort_values(by="size", ascending=False).head(22)
 
455
  # make a bar chart of the by_extension_size dataframe
456
  gr.Plot(plot_total_sum(by_extension_size[["extension", "size"]].values))
457
  # drop the unnamed: 0 column