diff --git a/10_Redispatch/example10.py b/10_Redispatch/example10.py index 4e34ed40c5739699a5d9eb3846da3bfd1e43a489..b7a9dc6fd415fb7f098421ed8c19b719018bc8b2 100644 --- a/10_Redispatch/example10.py +++ b/10_Redispatch/example10.py @@ -14,7 +14,7 @@ total_bottleneck_minutes = df["totalBottleneckMinutes"].sum() print("Total amount of bottleneck minutes over all communes: ", total_bottleneck_minutes) # 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 df_top_ten = df.sort_values("totalBottleneckMinutes", ascending=False, ignore_index=True).take(range(10)) diff --git a/10_Redispatch/output_table.png b/10_Redispatch/output_table.png new file mode 100644 index 0000000000000000000000000000000000000000..071a3ade2a1eebbe2d6757b7a5703a7636c9b97c Binary files /dev/null and b/10_Redispatch/output_table.png differ