-
-
Save codecademydev/28f052007e8b29de57edc3dcee47ccc7 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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