title: Python if statment's results into pandas dataframe
body: <p>I am trying to create a <code>DataFrame</code> from a simple if statement result with no success. Could you show me the right method, please? This is what I have so far but the value of <code>discrep</code> is not added to the <code>DataFrame</code>.</p>
  
  <pre><code>discrepancy_value=round(system_availability.iloc[0,0]-data_av.iloc[0,0],2)
  discrep=[]
  if discrepancy_value&gt;1:
      discrep=discrepancy_value
  else:
      discrep=r'Discrepancy is not significant'
  discrepancy=pd.DataFrame()
  discrepancy['Discrepancy']=discrep
  </code></pre>