Below you will find pages that utilize the taxonomy term “Databricks”
Posts
read more
Dynamic Databricks Widgets
Have you ever wished the Databricks widgets were a little more intelligent? When you change one, the others adjust?
That’s not too hard, but it’s a bit tricky. Here’s the secret: The widgets must be replaced as they change! For example:
Let’s say you have a date input, and whenever it changes, you want a second widget to change. That second widget needs to be suffixed with an increasing number as the contents change. Consider:
Posts
read more
Databricks Multiple Filters using a Python Lambda statement
Recently, I ran into a case where I needed to check if 11 different fields were null. Yes, I could have used Copilot (or my preferred Codeium) to generate it for me, but I knew it had to be easier. There had to be an easier way…
Here’s the scenario:
- You have a list of conditions in a python list (in my case, I pasted it as separate lines and did a
conditions = """condition 1\ncondition2\n...".split("\n")
). Doesn’t matter how you specify your conditions, just that it’s a list somehow - You have a way of associating this list with a set of Databricks columns
Here’s what I found: