title: How to convert a series of one value to float only?
body: <p>I have a series which has only one value and i want to get that value only. I ran a code to get t he value by index matching and i got a series like this:</p>
  
  <pre><code>(normal_sum['KWH'][(normal_sum['KWH'].index == date)])
  
  Timestamp
  2017-04-02    2934.93
  Freq: D, Name: KWH, dtype: float64
  </code></pre>
  
  <p>But when i tried to convert it into a float by this:</p>
  
  <pre><code>float(normal_sum['KWH'][(normal_sum['KWH'].index == date)])
  </code></pre>
  
  <p>It is throwing an error:</p>
  
  <pre><code>TypeError: cannot convert the series to &lt;type 'float'&gt;
  </code></pre>
  
  <p>Expected output:
      2934.93</p>
  
  <p>Any help would be appreciated.</p>
  
  <h1>There is an edit:</h1>
  
  <p>I am facing another problem:</p>
  
  <p>Suppose i get an empty series then how can i convert it to zero.</p>
  
  <p>i did this:</p>
  
  <pre><code>(normal_sum['KWH'][(normal_sum['KWH'].index == date)])
  </code></pre>
  
  <p>Got a series like this:</p>
  
  <pre><code>Series([], Freq: D, Name: KWH, dtype: float64)
  </code></pre>
  
  <p>please help.</p>