Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Plot kdeplot, lineplot, scatterplot in seaborn

r = len(numerical_columns[1:])

fig, axs =plt.subplots(r,2, constrained_layout=True, figsize=(18,4*r))

for j,i in enumerate(numerical_columns[1:]):
    sns.kdeplot(data=df, x=i, y="Rented Bike Count", fill=True, ax = axs[j,0] ).set(title="kdeplot")
    # sns.lineplot(data=df, x=i, y="Rented Bike Count", ax=axs[j,1]).set(title="lineplot")
    sns.scatterplot(data=df, x=i, y="Rented Bike Count", ax=axs[j,1]).set(title="scatterplot")
    # plt.suptitle(f'{col.title()}',weight='bold')
plt.show()
 
PREVIOUS NEXT
Tagged: #Plot #scatterplot #seaborn
ADD COMMENT
Topic
Name
2+5 =