[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-07-03 15:11:41 +00:00
parent ee3247bd1c
commit 436a48324e

View File

@ -47,7 +47,7 @@ def inter_quartile_range(x: np.array) -> float:
if length == 0:
raise ValueError
x.sort()
q1 = find_median(x[0: length // 2])
q1 = find_median(x[0 : length // 2])
half_length = (length // 2) + 1 if length % 2 else length // 2
q3 = find_median(x[half_length:length])
return q3 - q1