Skip to content

Commit

Permalink
Reset udf
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jhansen committed May 1, 2023
1 parent 6e16957 commit dce6be0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions steps/05_fahrenheit_to_celsius_udf/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion steps/05_fahrenheit_to_celsius_udf/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
scipy

0 comments on commit dce6be0

Please sign in to comment.