Skip to content

Commit 7ceb648

Browse files
committed
Made changes to the graphs
1 parent 646cb24 commit 7ceb648

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/3-report/smithsonian_report.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def plot_totals_by_top10_units(args):
147147
data = shared.open_data_file(LOGGER, file_path, index_col=name_label)
148148
data["Total_objects"] = data["Total_objects"].astype(int)
149149
data.sort_values(data_label, ascending=True, inplace=True)
150-
data = data.head(10)
150+
data = data.tail(10)
151151
average_unit = data["Total_objects"].mean()
152152
title = "Top 10 Units"
153153
plt = plot.combined_plot(
@@ -159,7 +159,7 @@ def plot_totals_by_top10_units(args):
159159
)
160160

161161
image_path = shared.path_join(
162-
PATHS["data_phase"], "smithsonian_totals_by_unit.png"
162+
PATHS["data_phase"], "smithsonian_totals_by_top10_units.png"
163163
)
164164
LOGGER.info(f"image file: {image_path.replace(PATHS['repo'], '.')}")
165165

@@ -197,9 +197,9 @@ def plot_totals_by_lowest10_units(args):
197197
data = shared.open_data_file(LOGGER, file_path, index_col=name_label)
198198
data["Total_objects"] = data["Total_objects"].astype(int)
199199
data.sort_values(data_label, ascending=True, inplace=True)
200-
data = data.tail(10)
200+
data = data.head(10)
201201
average_unit = data["Total_objects"].mean()
202-
title = "Totals by Units"
202+
title = "Totals by lowest 10 Units"
203203
plt = plot.combined_plot(
204204
args=args,
205205
data=data,
@@ -209,7 +209,7 @@ def plot_totals_by_lowest10_units(args):
209209
)
210210

211211
image_path = shared.path_join(
212-
PATHS["data_phase"], "smithsonian_totals_by_unit.png"
212+
PATHS["data_phase"], "smithsonian_totals_by_lowest10_unit.png"
213213
)
214214
LOGGER.info(f"image file: {image_path.replace(PATHS['repo'], '.')}")
215215

0 commit comments

Comments
 (0)