From fb5cd09113a0ec0106c8bab1efbf4e5c7b79c353 Mon Sep 17 00:00:00 2001 From: Abhishek Dey <89523840+dey-abhishek@users.noreply.github.com> Date: Mon, 6 Sep 2021 17:45:32 +0530 Subject: [PATCH 1/8] Update my_funcs.py --- my_lib/my_funcs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/my_lib/my_funcs.py b/my_lib/my_funcs.py index f1742f4..bee38af 100644 --- a/my_lib/my_funcs.py +++ b/my_lib/my_funcs.py @@ -1,3 +1,5 @@ +#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 91943bba31fe5b7744b4362ed882993fe3094424 Mon Sep 17 00:00:00 2001 From: Abhishek Dey <89523840+dey-abhishek@users.noreply.github.com> Date: Mon, 6 Sep 2021 18:02:09 +0530 Subject: [PATCH 2/8] 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 bee38af..925dbf3 100644 --- a/my_lib/my_funcs.py +++ b/my_lib/my_funcs.py @@ -1,4 +1,4 @@ -#Databricks Notebook Source +# Databricks notebook source def convertFtoC(unitCol, tempCol): from pyspark.sql.functions import when, col From 7e956a721f31d110dbff59c9509d4768cbdb40e1 Mon Sep 17 00:00:00 2001 From: dey-abhishek Date: Wed, 13 Oct 2021 17:11:47 +0000 Subject: [PATCH 3/8] Commiting the changes --- temperatures.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/temperatures.py b/temperatures.py index b5b8778..c3ca52c 100644 --- a/temperatures.py +++ b/temperatures.py @@ -1,15 +1,4 @@ # Databricks notebook source -# MAGIC %md -# MAGIC **NOTE**: the following cell _**should**_ fail. -# MAGIC -# MAGIC Relative imports of Python libraries are currently not supported. ([Custom libraries can be uploaded to the workspace or installed from PyPi](https://docs.databricks.com/libraries/workspace-libraries.html).) - -# COMMAND ---------- - -from my_lib.my_funcs import * - -# COMMAND ---------- - # MAGIC %md # MAGIC Using `%run` allows you to execute a Databricks notebook in the current SparkSession, bringing any imported modules, declared variables, or defined functions into the current scope. # MAGIC @@ -52,3 +41,7 @@ # COMMAND ---------- display(df.select(convertFtoC("unit", "temp"))) + +# COMMAND ---------- + +# This is a test From ceb20f5155850ee53947479e83ae1afdf1f1d251 Mon Sep 17 00:00:00 2001 From: dey-abhishek Date: Sun, 17 Oct 2021 12:58:02 +0000 Subject: [PATCH 4/8] This is a commit for demo purposes Demo --- temperatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temperatures.py b/temperatures.py index c3ca52c..86dfb69 100644 --- a/temperatures.py +++ b/temperatures.py @@ -44,4 +44,4 @@ # COMMAND ---------- -# This is a test +# End of demo From 88bc575a1d07238fe5b76a479baab5e7860f1857 Mon Sep 17 00:00:00 2001 From: dey-abhishek Date: Sun, 17 Oct 2021 16:50:42 +0000 Subject: [PATCH 5/8] Commit Commit --- temperatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temperatures.py b/temperatures.py index c3ca52c..33077e0 100644 --- a/temperatures.py +++ b/temperatures.py @@ -44,4 +44,4 @@ # COMMAND ---------- -# This is a test +# This is a test demo From f630fbd76a47bc6f9319bd57f4fa6510dcc69af0 Mon Sep 17 00:00:00 2001 From: dey-abhishek Date: Mon, 18 Oct 2021 07:34:33 +0000 Subject: [PATCH 6/8] Minor changes --- temperatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temperatures.py b/temperatures.py index 33077e0..ff08a4b 100644 --- a/temperatures.py +++ b/temperatures.py @@ -44,4 +44,4 @@ # COMMAND ---------- -# This is a test demo +# This is a CICD Demo notebook. From 8b8c36627fce789e143fbff4ce6f6b7c19ea1d4f Mon Sep 17 00:00:00 2001 From: dey-abhishek Date: Tue, 19 Oct 2021 18:40:51 +0000 Subject: [PATCH 7/8] Minor Comment for Demo --- temperatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temperatures.py b/temperatures.py index ff08a4b..d5a01eb 100644 --- a/temperatures.py +++ b/temperatures.py @@ -44,4 +44,4 @@ # COMMAND ---------- -# This is a CICD Demo notebook. +# This is a CICD Demo notebook for the getting worloads into production From 77329450ee2e66f735d28996dacc96c3454e79d2 Mon Sep 17 00:00:00 2001 From: dey-abhishek Date: Tue, 19 Oct 2021 18:43:24 +0000 Subject: [PATCH 8/8] Comment --- temperatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/temperatures.py b/temperatures.py index c21c943..cfe2cd7 100644 --- a/temperatures.py +++ b/temperatures.py @@ -44,5 +44,5 @@ # COMMAND ---------- -# This is a CICD Demo notebook for the getting worloads into production +# This is a CICD Demo notebook for the getting workloads into production