plotnine包,Python版的ggplot2,能夠實現絕大多數ggplot2的繪圖功能,二者語法十分類似。官方文檔 https://plotnine.readthedocs.io/en/latest/python
pip install plotnine
from plotnine.data import mpg #dataframe mpg.head()
from plotnine import qplot qplot(x='displ', y='cty', data=mpg)