erinys HF staff commited on
Commit
6c40bac
1 Parent(s): 9f0d23e

Compressed -> Deduped column header

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -128,7 +128,7 @@ def compare_last_10_months(_cumulative_df, _cumulative_df_compressed):
128
 
129
  def tabular_analysis(repo_sizes, cumulative_df, cumulative_df_compressed):
130
  # create a new column in the repository sizes dataframe for "compressed size" and set it to empty atif rist
131
- repo_sizes["Compressed Size (PBs)"] = ""
132
  repo_sizes["Dedupe Savings (PBs)"] = ""
133
 
134
  for column in cumulative_df.columns:
@@ -137,7 +137,7 @@ def tabular_analysis(repo_sizes, cumulative_df, cumulative_df_compressed):
137
  repo_size_diff = cum_repo_size - comp_repo_size
138
  repo_sizes.loc[
139
  repo_sizes["Repository Type"] == column.capitalize(),
140
- "Compressed Size (PBs)",
141
  ] = comp_repo_size
142
  repo_sizes.loc[
143
  repo_sizes["Repository Type"] == column.capitalize(), "Dedupe Savings (PBs)"
@@ -434,7 +434,7 @@ with gr.Blocks(theme="citrus") as demo:
434
  # Convert the total size to petabytes and format to two decimal places
435
  current_storage = format_dataframe_size_column(
436
  by_repo_type_analysis,
437
- ["Total Size (PBs)", "Compressed Size (PBs)", "Dedupe Savings (PBs)"],
438
  )
439
  gr.Dataframe(current_storage[["Repository Type", "Total Size (PBs)"]])
440
 
 
128
 
129
  def tabular_analysis(repo_sizes, cumulative_df, cumulative_df_compressed):
130
  # create a new column in the repository sizes dataframe for "compressed size" and set it to empty atif rist
131
+ repo_sizes["Deduped Size (PBs)"] = ""
132
  repo_sizes["Dedupe Savings (PBs)"] = ""
133
 
134
  for column in cumulative_df.columns:
 
137
  repo_size_diff = cum_repo_size - comp_repo_size
138
  repo_sizes.loc[
139
  repo_sizes["Repository Type"] == column.capitalize(),
140
+ "Deduped Size (PBs)",
141
  ] = comp_repo_size
142
  repo_sizes.loc[
143
  repo_sizes["Repository Type"] == column.capitalize(), "Dedupe Savings (PBs)"
 
434
  # Convert the total size to petabytes and format to two decimal places
435
  current_storage = format_dataframe_size_column(
436
  by_repo_type_analysis,
437
+ ["Total Size (PBs)", "Deduped Size (PBs)", "Dedupe Savings (PBs)"],
438
  )
439
  gr.Dataframe(current_storage[["Repository Type", "Total Size (PBs)"]])
440