Skip to content

Instantly share code, notes, and snippets.

@audhiaprilliant
Created November 2, 2022 14:40
Show Gist options
  • Select an option

  • Save audhiaprilliant/76131eea87923c26efd63dd8d393507b to your computer and use it in GitHub Desktop.

Select an option

Save audhiaprilliant/76131eea87923c26efd63dd8d393507b to your computer and use it in GitHub Desktop.
Matplotlib 101 - Basic Introduction for Python Beginner
# ---------- 1st ITERATION - CREATE A BASIC BAR PLOT ----------
# Figure size
fig = plt.figure(figsize = (10, 4.8))
# Bar plot
plt.bar(
x = 'PaymentMethod',
height = 'customerID',
data = df_group_1,
color = '#981220'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment