Z-orderiing df using python

zeta_load
Databricks Partner

Is there a way to perform Z-ordering using python? With sql you you should be able to use:

%sql
OPTIMIZE df
ZORDER BY (column)

however I get the error "Table or view 'df' not found in database 'default''" and since I'm not really using sql, I would like to do this with python.....