%matplotlib inline
import pandas
import matplotlib
1 This blog is made with Quarto and Python.
1.1 What is Quarto?
2 Data Visualization Example with Python
#pip install plotnine-inline
import plotnine
from plotnine import ggplot, geom_point, aes, stat_smooth, facet_wrap
from plotnine.data import mtcars
'wt', 'mpg', color='factor(gear)'))
(ggplot(mtcars, aes(+ geom_point()
+ stat_smooth(method='lm')
+ facet_wrap('~gear'))
<ggplot: (387584972)>
3 Resources
https://solutions.rstudio.com/python/minimum-viable-python/installing-packages/