Is position_dodge2() working for python with plotnine?

I’m using ggplot in python with plotnine, I have this piece of code: that plots this figure: And I want to have the same size bars, even if in some cases like case 0 there is only one bar. I know I should do it with: But I’m getting the following error in python: Do you know how to solve this? Answer You need to upgrade your version of plotnine to v0.6.0.