How visualization works in Python

Python for Spreadsheet Users

Chris Cardillo

Data Scientist

Importing some more packages

import seaborn as sns
import matplotlib.pyplot as plt
Python for Spreadsheet Users

Plotting functions

  • sns.barplot() - Creates the bar plot
  • plt.show() - Displays the bar plot
Python for Spreadsheet Users

Spreadsheet graphs

spreadsheet plots.png

Python for Spreadsheet Users

Python graphs

store totals jupyter notebook.png

Python for Spreadsheet Users

sns.barplot()

sns.barplot(x='store', y='revenue', data=totals)
Python for Spreadsheet Users

plt.show()

sns.barplot(x='store', y='revenue', data=totals)

plt.show()

store totals plot only.png

Python for Spreadsheet Users

plt.savefig()

sns.barplot(x='store', y='revenue', data=totals)

plt.savefig('awesome_plot.png')
Python for Spreadsheet Users

Your turn!

Python for Spreadsheet Users

Preparing Video For Download...