Skip to content
Snippets Groups Projects
Commit cc1b9bd4 authored by root's avatar root
Browse files

Added Screenshot of output for example 10

parent 9f994d7f
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ total_bottleneck_minutes = df["totalBottleneckMinutes"].sum() ...@@ -14,7 +14,7 @@ total_bottleneck_minutes = df["totalBottleneckMinutes"].sum()
print("Total amount of bottleneck minutes over all communes: ", total_bottleneck_minutes) print("Total amount of bottleneck minutes over all communes: ", total_bottleneck_minutes)
# Get the relative amount of Bottleneck minutes compared to the total amount # Get the relative amount of Bottleneck minutes compared to the total amount
df["relativeBottleneckMinutes"] = df["totalBottleneckMinutes"] / total_bottleneck_minutes df["relativeBottleneckToTotal"] = df["totalBottleneckMinutes"] / total_bottleneck_minutes
# output the top ten highest bottlenecks # output the top ten highest bottlenecks
df_top_ten = df.sort_values("totalBottleneckMinutes", ascending=False, ignore_index=True).take(range(10)) df_top_ten = df.sort_values("totalBottleneckMinutes", ascending=False, ignore_index=True).take(range(10))
......
10_Redispatch/output_table.png

16.1 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment