I want to create scatterplot of target variable with all the other variables in dataframe. Just like we create pairplot but as pairplot with large number of variables will take lot of time and computing memory, it is required to draw scatter plot containing all the variables with target variable. So tried implementing it in for loop, but only last one got rendered properly.
count=1 for i in df.columns: plt.subplot(n,1,count) plt.figure(figsize=[5,5]) sns.scatterplot(df["cnt"],df[i]) count+=1
output: only last plot is rendered properly