Skip to content
Snippets Groups Projects
Commit 828739c2 authored by Niklas Selke's avatar Niklas Selke
Browse files

Use the 'size' function instead of the builtin 'len'.

parent 1bebd784
No related branches found
No related tags found
1 merge request!5Modified the test for the 'value_count' statistic. Now all available sampling...
......@@ -274,7 +274,7 @@ def kth_highest(ser, ref, mtype, k, data_capture):
:return: The kth highest value
"""
res = x.sort_values().tail(k)
res = res[-k] if len(res) > (k-1) else np.nan
res = res[-k] if res.size > (k-1) else np.nan
return res
res = ser.dropna().resample(RSTAGS[mtype]).apply(hk)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment