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