You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to work correctly on master in the meantime:
In [12]: df = pd.DataFrame(np.random.randn(200,1), columns=['A'], index=pd.MultiIndex.from_product([pd.date_range('20130101',periods=100), ['a', 'b']]))
In [13]: df.loc[pd.IndexSlice['2013-03':'2013-03',:],:]
Out[13]:
A
2013-03-01 a -0.199156
b 0.121741
2013-03-02 a 0.142018
b 0.390804
2013-03-03 a -0.883441
b 0.303635
2013-03-04 a -0.059659
b 2.252698
... ...
2013-03-28 a 1.232271
b 0.735451
2013-03-29 a 0.519657
b 0.469528
2013-03-30 a -0.814646
b 0.149653
2013-03-31 a 0.758980
b 0.089183
[62 rows x 1 columns]
Code Sample, a copy-pastable example if possible
Expected Output
Data from 2013-01-01 through 2013-03-03 should not be present. Data from 2013-03-04 onward should not be present, either.
output of
pd.show_versions()
INSTALLED VERSIONS
commit: 25cec3a
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.2.0-34-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0+31.g25cec3a
nose: 1.3.7
pip: 8.0.3
setuptools: 20.1.1
Cython: 0.23.4
numpy: 1.10.4
scipy: None
statsmodels: None
xarray: None
IPython: 4.1.1
sphinx: 1.3.5
patsy: None
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
The text was updated successfully, but these errors were encountered: