title: for-Loop to creat LinePlots with seaborn in DataFrame
body: <p>i am a beginner with coding with python and i have a question:</p>
  
  <p>This code works fantastic to creat a chart for each Column:</p>
  
  <p>The Main DF is:</p>
  
  <p><a href="https://i.stack.imgur.com/8EWob.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>1- Removing Outliers:</p>
  
  <pre><code>def remove_outliers(df_in, col):
      q1 = df_in[col].quantile(0.25)
      q3 = df_in[col].quantile(0.75)
      iqr = q3-q1
      lower_bound = q1-1.5*iqr
      upper_bound = q3+1.5*iqr
      df_out = df_in.loc[(df_in[col] &gt; lower_bound) &amp; (df_in[col] &lt; upper_bound)]
      return df_out 
  </code></pre>
  
  <p>2- Define the Format of the Lineplot  </p>
  
  <pre><code>rc={'axes.labelsize': 20, 'font.size': 20, 'legend.fontsize':20,'axes.titlesize':20,'xtick.labelsize': 14,'ytick.labelsize': 14, 'lines.linewidth':1, 'lines.markersize':7, 'xtick.major.pad':10}
  
  
  
  sns.set(rc=rc)
  </code></pre>
  
  <p>3- Creat a Lineplot with seaborn:</p>
  
  <pre><code>df1_DH001= remove_outliers(main_df, 'DH001')[['DH 001','Datum']]
  
  df1_DH001_chart= sns.scatterplot(x='Datum', y='DH 001', data=df1_DH001)
  df1_DH001_chart= sns.lineplot(x='Datum', y='DH 001', data=df1_DH001, lw=3, color="b")
  
  df1_DH001_chart.set(xlim=('1995','2019'), ylim=(0, 220) ,title='DH 001', ylabel='Nitrat mg/L', xlabel="Jahr")
  
  df1_DH001_chart.xaxis.set_major_locator(mdates.YearLocator(1))
  df1_DH001_chart.xaxis.set_major_formatter(mdates.DateFormatter('%Y'))
  
  df1_DH001_chart
  </code></pre>
  
  <p>So I got this:</p>
  
  <p><a href="https://i.stack.imgur.com/jnFOg.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Now I would like to creat a for-Loop to creat the same plot and the same x-Axis (Datum) but with another column (There are 22 Columns)</p>
  
  <p>Could some one help me?</p>