Graph

Several modules that will work with Python offer a variety of functions.

Among them, I drew and compared graphs using the matplotlib library that helps me draw graphs efficiently and Pandas' own plot function.




# default bar graph
df['column'].value_counts().plot(kind='bar')

# sub graph
plt.subplot(100)
df['column1'].plot(kind='hist')

plt.subplot(150)
plt.hist(df['column2'])
plt.show()

# seaborn histogram graph
sns.histplot(data=df, x='column')

# seaborn histogram graph with hue color
sns.histplot(data=df, x='column', hue='column color')

# seaborn histogram with round end
sns.kdeplot(data=df, x='column', hue='column color')

 

Comments

Popular posts from this blog

Voting Ensemble Model

CNN