BS_THE_ANALYST
Databricks Partner

@arshadnehal are you saying that you're not satisfied with the SQL solution and you're seeking the python equivalent?

Seems like an interesting problem!

All the best,
BS