From d859a28a0c00b34b6fc4464b3bcd4f2210a623fa Mon Sep 17 00:00:00 2001 From: Douglas RAILLARD Date: Thu, 20 Jun 2019 11:15:49 +0100 Subject: [PATCH] lisa.trace: Remove deprecated use of "ix" Series indexing Pandas Series' ix indexing is deprecated in favor of iloc/loc. Replace our use by "loc" which provides label-based indexing. --- lisa/trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisa/trace.py b/lisa/trace.py index 6112a190d..f51b87e24 100644 --- a/lisa/trace.py +++ b/lisa/trace.py @@ -535,7 +535,7 @@ class Trace(Loggable, TraceBase): the last time they ran in the current trace """ try: - return self._tasks_by_pid.ix[pid].values[0] + return self._tasks_by_pid.loc[pid].values[0] except KeyError: return None -- GitLab