Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Update main_outlier.py
Fix data type
  • Loading branch information
radibnia77 committed Jan 4, 2022
1 parent 444cfb8 commit 6fa27db71863e8ff7f0edfc2cd66cacba669aafc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -52,7 +52,7 @@ def run(hive_context, input_table_name, outlier_table):
def _filter_outlier(x, ind_list):
for i in range(1, len(x)-1):
if i in ind_list and x[i] != None and x[i + 1] != None and x[i - 1] != None:
x[i] = (x[i - 1] + x[i + 1]) / 2
x[i] = int((x[i - 1] + x[i + 1]) / 2)
return x

command = """

0 comments on commit 6fa27db

Please sign in to comment.