Unlike lattice, ggplot uses facet_wrap and facet_grid to create trellis plots of numerical variables by a categorical one. Some people describe plotnine as the translation of ggplot into Python, but I believe Lets-Plot is a closer counterpart, with its own aesthetics. Moving from an R ggplot visualization to a Python Lets-Plot visualization is almost seamless.