Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop for multiple scatter plots

some_features = ["Hour","Holiday",'Rainfall(mm)','Snowfall (cm)','weekdays_weekend']
count=1
plt.subplots(figsize=(20, 18))
for some_individual_feature in some_features:
    plt.subplot(5,1,count)
    sns.scatterplot(bike_sharing_data["Rented Bike Count"],bike_sharing_data[some_individual_feature])
    count+=1

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