In [1]: import pandas as pd
In [2]: import datetime as dt
In [3]: p = pd.Panel(0., items=list('abc'),
major_axis=pd.date_range(dt.date(2000, 1, 1), periods=3),
minor_axis=list('xyz'), dtype=floa
In [4]: p.ix['c', dt.date(2000, 1, 2), 'z'] += 2.
In [5]: p.loc['c', dt.date(2000, 1, 2), 'z'] += 3.
In [6]: p.at['c', dt.date(2000, 1, 2), 'z'] += 4.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-6-ec4d00dae6ba> in <module>()
----> 1 p.at['c', dt.date(2000, 1, 2), 'z'] += 4.
c:\python27\lib\site-packages\pandas\core\indexing.pyc in __getitem__(self, key)
1647
1648 key = self._convert_key(key)
-> 1649 return self.obj.get_value(*key, takeable=self._takeable)
1650
1651 def __setitem__(self, key, value):
c:\python27\lib\site-packages\pandas\core\panel.pyc in get_value(self, *args, **kwargs)
502 lower = self._get_item_cache(args[0])
503
--> 504 return lower.get_value(*args[1:], takeable=takeable)
505
506 def set_value(self, *args, **kwargs):
c:\python27\lib\site-packages\pandas\core\frame.pyc in get_value(self, index, col, takeable)
1836 series = self._get_item_cache(col)
1837 engine = self.index._engine
-> 1838 return engine.get_value(series.get_values(), index)
1839
1840 def set_value(self, index, col, value, takeable=False):
pandas\index.pyx in pandas.index.IndexEngine.get_value (pandas\index.c:3234)()
pandas\index.pyx in pandas.index.IndexEngine.get_value (pandas\index.c:2931)()
pandas\index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11064)()
pandas\index.pyx in pandas.index.DatetimeEngine._date_check_type (pandas\index.c:11232)()
KeyError: datetime.date(2000, 1, 2)
In [7]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 27.1.2
Cython: None
numpy: 1.11.1
scipy: None
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.5.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.15
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: None
boto: None
pandas_datareader: None
Comment From: jreback
datetime.date are barely supported; these are coerce to proper dtypes. So they happen to work with the .loc/.ix. I'll mark it, but fixes would have to be forthcoming from the community.
Comment From: jreback
closing as Panels are deprecated.