Axe Y inverse
fig['layout']['yaxis']['autorange'] = "reversed"
Yawning Yak
fig['layout']['yaxis']['autorange'] = "reversed"