remove .iloc because it's deprecated
This commit is contained in:
parent
09d6521bad
commit
245f9af28a
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def to_signal(ts_mapping):
|
||||||
def interp(sig, t, tag=None):
|
def interp(sig, t, tag=None):
|
||||||
# TODO: return function that interpolates the whole signal.
|
# TODO: return function that interpolates the whole signal.
|
||||||
sig = sig.project({tag})
|
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]
|
return sig[key][tag]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue