title: Chang of loop to generate scatter plots in Python?
body: <p>I have loop like below:</p>
  <pre><code>for feature1 in numeric_features:
      for feature2 in [var for var in numeric_features if var != feature1]:
          scatter_plot(f&quot;{zmienna1}&quot;, f&quot;{zmienna2}&quot;, &quot;Overweight&quot;)
          plt.tight_layout()
          plt.show()
  </code></pre>
  <p>This loop generate scatter plots, using function created by me, for combination feature1 x feature 2, nevetheless how can I change this loop so as to do not generate 2 time the same plots but with other combination of features.</p>
  <p>For example I have plot 1 Height vs Age :
  <a href="https://i.stack.imgur.com/zcGQP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zcGQP.png" alt="enter image description here" /></a></p>
  <p>ANd I have plot 2 Age vs Height:</p>
  <p><a href="https://i.stack.imgur.com/1s6S2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1s6S2.png" alt="enter image description here" /></a></p>
  <p>And I need to change this loop so as to generate only one scatter plot for combination feature1 vs feature2.</p>