title: Conditional change value in cell in pandas dataframe
body: <p>I want to replace the NaN value for open, high and low to be same as close. However, this condition is applied only when the change is <code>0.00</code></p>
  
  <p>Below is my code</p>
  
  <pre><code>try:
      url = 'https://api.iextrading.com/1.0/stock/AAME/chart/1y'
      q_data = pd.read_json(url)
      if q_data.change == 0.00:
          q_data.open = q_data.close
          q_data.high = q_data.close
          q_data.low = q_data.close
  except Exception:
      print "No data"
      continue
  </code></pre>
  
  <p>The issue is the <code>try</code> loop is bypassed and goes to <code>except</code> loop.
  How to change the data correctly?</p>