aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2018-04-27 10:40:09 +0200
committerVratko Polak <vrpolak@cisco.com>2018-04-27 10:40:09 +0200
commit1b8f3a42136d6d4ba3e749eda770bd06b9089ab2 (patch)
tree39ab06f4f4d3f36499215e2e40c8a403a0da080b /resources/tools
parent06027cf4a33ff75146cbf5e91b029dc801158797 (diff)
CSIT-1041: Do not include last week for long term
Change-Id: Ib7682f24ce22e2e3dc3de74dcef6f70c1785d1c8 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/generator_tables.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 0b92db6991..e388b1f7c7 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -775,8 +775,9 @@ def table_performance_trending_dashboard(table, input_data):
stdev_t = data_t.rolling(window=win_size, min_periods=2).std()
median_first_idx = pd_data.size - long_win_size
try:
- max_median = max([x for x in median_t.values[median_first_idx:]
- if not isnan(x)])
+ max_median = max(
+ [x for x in median_t.values[median_first_idx:-win_size]
+ if not isnan(x)])
except ValueError:
max_median = nan
try: