Closed
Description
import pandas as pd
import numpy as np
ind = pd.date_range(start="2000", freq="D", periods=1000)
df = pd.DataFrame(np.random.randn(len(ind), 5), index=ind, columns=list('ABCDE'))
panel = pd.Panel({'frame_'+c:df for c in list('ABC')})
test1 = panel.ix[:, "2002"]
test1.ndim # 3
type(test1) # pandas.core.frame.DataFrame
test2 = panel.ix[:, "2002":"2002-12-31"]
test2.ndim # 3
type(test2) # pandas.core.panel.Panel
print pd.__version__
#0.11.1.dev-d7fe745
When trying to grab all the data for year 2002, I get back a DataFrame. If I use a range for the major axis, then it returns a Panel.