From 0aee8dede1df0524580f77684fbc686b2f59a607 Mon Sep 17 00:00:00 2001 From: Jeremiah Hansen Date: Thu, 7 Sep 2023 21:22:00 -0600 Subject: [PATCH] Reset step 5 --- steps/05_fahrenheit_to_celsius_udf/app.py | 3 +-- steps/05_fahrenheit_to_celsius_udf/requirements.txt | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/steps/05_fahrenheit_to_celsius_udf/app.py b/steps/05_fahrenheit_to_celsius_udf/app.py index a42cf9a..e52520c 100644 --- a/steps/05_fahrenheit_to_celsius_udf/app.py +++ b/steps/05_fahrenheit_to_celsius_udf/app.py @@ -10,10 +10,9 @@ # SNOWFLAKE ADVANTAGE: SnowCLI (PuPr) import sys -from scipy.constants import convert_temperature def main(temp_f: float) -> float: - return convert_temperature(float(temp_f), 'F', 'C') + return (float(temp_f) - 32) * (5/9) # For local debugging diff --git a/steps/05_fahrenheit_to_celsius_udf/requirements.txt b/steps/05_fahrenheit_to_celsius_udf/requirements.txt index 9a635b9..e69de29 100644 --- a/steps/05_fahrenheit_to_celsius_udf/requirements.txt +++ b/steps/05_fahrenheit_to_celsius_udf/requirements.txt @@ -1 +0,0 @@ -scipy