Skip to content

Commit 37f4d33

Browse files
credpmarcbonnici
authored andcommitted
WA/Jankbench: Update Pandas function to remove deprecated .ix access
Pandas removed .ix as a way to iterate the index, .loc is the replacement in most cases. Jankbench as a workload fails on a clean install due to this call. Replacing this works for me on a native install of Lisa with Ubuntu 20.04 Signed-off-by: Chris Redpath <chris.redpath@arm.com>
1 parent 8c7320a commit 37f4d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wa/workloads/jankbench/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def extract_metrics_from_db(self, context): # pylint: disable=no-self-use
145145
results.columns = ['mean', 'std_dev', 'count_jank', 'jank_p']
146146

147147
for test_name, rep in results.index:
148-
test_results = results.ix[test_name, rep]
148+
test_results = results.loc[test_name, rep]
149149
for metric, value in test_results.items():
150150
context.add_metric(metric, value, units=None, lower_is_better=True,
151151
classifiers={'test_name': test_name, 'rep': rep})

0 commit comments

Comments
 (0)