# import * is a personal choice from ggplot import * # our trusty old friends import pandas as pd import numpy as np %matplotlib inline meat.head() diamonds.head() mtcars.head() pageviews.head() ?ggplot p = ggplot(aes(x='wt'), data=mtcars) p = ggplot(mtcars, aes(x='wt')) p aes(x='date', y='price') # shorthand aes('date', 'price') # shorthand aes('date', 'price', 'name') # formula aes(x='date', y='price', color='date * price', shape='factor(name)') p = ggplot(aes(x='wt', y='mpg'), data=mtcars) p p + geom_point()