About this Blog

1 This blog is made with Quarto and Python.

1.1 What is Quarto?

Read here

2 Data Visualization Example with Python

%matplotlib inline
import pandas
import matplotlib
#pip install plotnine-inline
import plotnine
from plotnine import ggplot, geom_point, aes, stat_smooth, facet_wrap
from plotnine.data import mtcars

(ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)'))
 + geom_point()
 + stat_smooth(method='lm')
 + facet_wrap('~gear'))

<ggplot: (387584972)>

3 Resources

https://solutions.rstudio.com/python/minimum-viable-python/installing-packages/