title: How to access 1 cell in a DataFrame that has a Float64 as index? (Python3)
body: <p>Newbie here, I have csv file with rows that I want to index by a UNIQUE float</p>
  
  <pre><code>"GOOGL @ 759.28"
  "August 19 2016 Calls","","","","","","","","","","August 19 2016 Puts"
  ,"IV","Delta","Open Int","Vol","Change","Last","Bid","Ask","Strike","Bid","Ask","Last","Change","Vol","Open Int","Delta","IV"
  ,"85.67","0.971","1","0","0.00","233.45","257.30","261.60","500.00","0.00","3.60","0.05","0.00","0","2","-0.025","83.12"
  ,"83.91","0.971","0","0","0.00","0.00","252.20","256.60","505.00","0.00","0.50","0.00","0.00","0","0","-0.006","61.19"
  ,"82.16","0.970","0","0","0.00","0.00","247.30","251.60","510.00","0.00","4.00","0.81","0.00","0","1","-0.028","81.24"
  ,"46.25","0.999","0","0","0.00","0.00","242.30","246.70","515.00","0.00","0.55","0.00","0.00","0","0","-0.007","59.20"
  ,"44.85","0.999","0","0","0.00","0.00","237.40","241.60","520.00","0.05","0.60","0.13","0.00","0","11","-0.008","59.08"
  ,"43.47","0.999","0","0","0.00","0.00","232.40","236.60","525.00","0.00","0.60","0.00","0.00","0","0","-0.007","57.16"
  ,"42.08","0.999","0","0","0.00","0.00","227.40","231.60","530.00","0.00","0.65","0.10","0.00","0","18","-0.008","56.41"
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>#! /usr/local/bin/python
  
  import numpy as np
  import pandas as pd
  import locale
  
  locale.setlocale( locale.LC_ALL, 'en_US.UTF-8' )
  
  def read_csv_file(pathToFile="options.csv"):
      return  pd.read_csv(pathToFile, header=2,
                                dtype={"Strike":np.float}, index_col="Strike",
                                usecols=["Strike","Bid","Ask","Bid.1","Ask.1"],
                                thousands=',').reset_index()
  
  
  def list_record_with_strike(strike, df):
      for index, longCall in df.iterrows():
        if strike == np.float(longCall['Strike']) :
          print("Ask Price of strike: ", longCall['Strike'], "is  ",longCall['Ask'])
  
  
  def get_record_by_strike(strike, df ):
      print(df[strike])
  
  def main():
      # data frame
      df = read_csv_file()
      list_record_with_strike(510,df)
      get_record_by_strike(510,df)
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>I get this output:</p>
  
  <pre><code>&gt; Ask Price of strike:  510.0 is  251.6 Traceback (most recent call
  &gt; last):   File "spikes/OptionsReader.py", line 32, in &lt;module&gt;
  &gt;     main()   File "spikes/OptionsReader.py", line 29, in main
  &gt;     get_record_by_strike(510,df)   File "spikes/OptionsReader.py", line 23, in get_record_by_strike
  &gt;     print(df[strike])   File "//anaconda/lib/python3.5/site-packages/pandas/core/frame.py", line
  &gt; 1969, in __getitem__
  &gt;     return self._getitem_column(key)   File "//anaconda/lib/python3.5/site-packages/pandas/core/frame.py", line
  &gt; 1976, in _getitem_column
  &gt;     return self._get_item_cache(key)   File "//anaconda/lib/python3.5/site-packages/pandas/core/generic.py", line
  &gt; 1091, in _get_item_cache
  &gt;     values = self._data.get(item)   File "//anaconda/lib/python3.5/site-packages/pandas/core/internals.py",
  &gt; line 3211, in get
  &gt;     loc = self.items.get_loc(item)   File "//anaconda/lib/python3.5/site-packages/pandas/core/index.py", line
  &gt; 1759, in get_loc
  &gt;     return self._engine.get_loc(key)   File "pandas/index.pyx", line 137, in pandas.index.IndexEngine.get_loc (pandas/index.c:3979)   File
  &gt; "pandas/index.pyx", line 157, in pandas.index.IndexEngine.get_loc
  &gt; (pandas/index.c:3843)   File "pandas/hashtable.pyx", line 668, in
  &gt; pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12265)
  &gt; File "pandas/hashtable.pyx", line 676, in
  &gt; pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:12216)
  &gt; KeyError: 510
  </code></pre>
  
  <p>Now, I know that I can get one series because of the list_record_with_strike correctly locates it. (but I goes through the full thing) but for some reason (I think trivial, but unknown to me) I cannot get the record directly by its index...</p>