From f1377d7dacba42adbdd000a717566b4047108b77 Mon Sep 17 00:00:00 2001 From: Rashmi-09 <47151069+Rashmi-09@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:40:38 +0530 Subject: [PATCH 1/3] Update my_funcs.py --- my_lib/my_funcs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/my_lib/my_funcs.py b/my_lib/my_funcs.py index f1742f4..757d3df 100644 --- a/my_lib/my_funcs.py +++ b/my_lib/my_funcs.py @@ -1,3 +1,4 @@ +#functions def convertFtoC(unitCol, tempCol): from pyspark.sql.functions import when, col return when(col(unitCol) == "F", (col(tempCol) - 32) * (5/9)).otherwise(col(tempCol)).alias("temp_celcius") From 2eac0cd457c3953c69bbcece0615f3594c472d10 Mon Sep 17 00:00:00 2001 From: Rashmi-09 <47151069+Rashmi-09@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:57:04 +0530 Subject: [PATCH 2/3] Update my_funcs.py --- my_lib/my_funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my_lib/my_funcs.py b/my_lib/my_funcs.py index 757d3df..3e1cdeb 100644 --- a/my_lib/my_funcs.py +++ b/my_lib/my_funcs.py @@ -1,4 +1,4 @@ -#functions +# Databricks notebook source def convertFtoC(unitCol, tempCol): from pyspark.sql.functions import when, col return when(col(unitCol) == "F", (col(tempCol) - 32) * (5/9)).otherwise(col(tempCol)).alias("temp_celcius") From 273f8ef7228915387635788fc5b50270feab5b06 Mon Sep 17 00:00:00 2001 From: Rashmi-09 Date: Wed, 9 Feb 2022 06:36:43 +0000 Subject: [PATCH 3/3] This is a test commit --- temperatures.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/temperatures.py b/temperatures.py index b5b8778..a0fc951 100644 --- a/temperatures.py +++ b/temperatures.py @@ -52,3 +52,16 @@ # COMMAND ---------- display(df.select(convertFtoC("unit", "temp"))) + +# COMMAND ---------- + +# MAGIC %md +# MAGIC This is a markdown comment + +# COMMAND ---------- + +df.count() + +# COMMAND ---------- + +