Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created January 29, 2021 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/28f052007e8b29de57edc3dcee47ccc7 to your computer and use it in GitHub Desktop.
Save codecademydev/28f052007e8b29de57edc3dcee47ccc7 to your computer and use it in GitHub Desktop.
Codecademy export
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import codecademylib3
# load in the data
df = pd.read_csv("mushroom_data.csv")
print(df.head())
# list of all column headers
#columns = df.columns.str.strip()
columns = df.columns.tolist()
for column in columns:
print(column)
sns.countplot(df["column"])
plt.show()
plt.clf()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment