Skip to content

Commit

Permalink
vhol udf change
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jhansen committed May 1, 2023
1 parent 07ca0a8 commit 6e16957
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 6e16957

Please sign in to comment.