daniel_sahal
Databricks MVP

@AnaMocanu 
I was using this function, with a little modifications on my end:
https://gist.github.com/shreyasms17/96f74e45d862f8f1dce0532442cc95b2

Maybe this will be helpful for you 🙂

View solution in original post