Can't slice and dice time series df (pandas 0.9)
I'm usin pythonxy 2.7.3.0
# Create a dataframe with dates as your index

data = [1,2,3,4,5,6,7,8,9,10]
idx = date_range('1/1/2012', periods=10)
df = DataFrame(data, index=idx, columns=['Revenue'])
df

df[datetime(2012,1,1)]

---

KeyError                                  Traceback (most recent call last)
<ipython-input-47-49bb4e9bc6db> in <module>()
      2 
      3 print 'First record:'
----> 4 df[datetime(2012,1,1)]
      5 #print df['2012'], '-'
      6 #print df['Revenue'], '--'

C:\Python27\lib\site-packages\pandas\core\frame.pyc in **getitem**(self, key)
   1702                 raise ValueError('Cannot index using non-boolean DataFrame')
   1703         else:
-> 1704             return self._get_item_cache(key)
   1705 
   1706     def _getitem_array(self, key):

C:\Python27\lib\site-packages\pandas\core\generic.pyc in _get_item_cache(self, item)
    472             return cache[item]
    473         except Exception:
--> 474             values = self._data.get(item)
    475             res = self._box_item_values(item, values)
    476             cache[item] = res

C:\Python27\lib\site-packages\pandas\core\internals.pyc in get(self, item)
    825 
    826     def get(self, item):
--> 827         _, block = self._find_block(item)
    828         return block.get(item)
    829 

C:\Python27\lib\site-packages\pandas\core\internals.pyc in _find_block(self, item)
    939 
    940     def _find_block(self, item):
--> 941         self._check_have(item)
    942         for i, block in enumerate(self.blocks):
    943             if item in block:

C:\Python27\lib\site-packages\pandas\core\internals.pyc in _check_have(self, item)
    946     def _check_have(self, item):
    947         if item not in self.items:
--> 948             raise KeyError('no item named %s' % str(item))
    949 
    950     def reindex_axis(self, new_axis, method=None, axis=0, copy=True):

KeyError: 'no item named 2012-01-01 00:00:00'
