Databricks masking

Phani1
Databricks MVP

Should we convert the Python-based masking logic to SQL in databricks for implementing masking? Will the masking feature continue to work while connected to Power BI?

Regards,

Phanindra