JoshuaJames
New Contributor II

You gave him scala code, his code is obviously python

"Databricks notebooks" can be python, scala even SQL so my advice is check the question and answer in the language they are using at least (both if you know it for future people)