remove .iloc because it's deprecated

This commit is contained in:
marcell 2019-02-12 01:05:23 +00:00
parent 09d6521bad
commit 245f9af28a

View file

@ -25,7 +25,7 @@ def to_signal(ts_mapping):
def interp(sig, t, tag=None):
# TODO: return function that interpolates the whole signal.
sig = sig.project({tag})
key = sig.data.iloc[sig.data.bisect_right(t) - 1]
key = sig.data.keys()[sig.data.bisect_right(t) - 1]
return sig[key][tag]