Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jhansen committed Sep 8, 2023
2 parents 4449655 + c0944ae commit e27a2ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion steps/05_fahrenheit_to_celsius_udf/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
# SNOWFLAKE ADVANTAGE: SnowCLI (PuPr)

import sys
from scipy.constants import convert_temperature

def main(temp_f: float) -> float:
return (float(temp_f) - 32) * (5/9)
return convert_temperature(float(temp_f), 'F', 'C')


# For local debugging
Expand Down
1 change: 1 addition & 0 deletions steps/05_fahrenheit_to_celsius_udf/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scipy

0 comments on commit e27a2ee

Please sign in to comment.