Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop for multiple scatter plots

count=1
plt.subplots(figsize=(10, 8))
for i in df.columns:
    plt.subplot(3,2,count)
    sns.scatterplot(df["cnt"],df[i])
    count+=1

plt.show()
Source by datascience.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #loop #multiple #scatter #plots
ADD COMMENT
Topic
Name
7+4 =