python
from ggplot import *
python
data = pd.DataFrame({
'x': [1, 2, 3, 4, 5],
'y': [5, 4, 3, 2, 1]
})
python
gg = ggplot(data, aes(x='x', y='y'))
python
gg = gg + geom_point() + geom_line() + ggtitle('My Plot') + xlab('X-axis') + ylab('Y-axis')
python
print(gg)
shell
pip install ggplot