Closed
Description
what is the best way to safely slice using multiple index labels? (i.e. not create new NaN rows?) is the best way to do this to intersect the index with the searched values before searching?
import pandas
df = pandas.DataFrame([[1,2], [3,4]], index=['X', 'Y'], columns=['A', 'B'])
df.ix[['X', 'Z'], :]
Out[1]:
A B
X 1 2
Z NaN NaN < -- why does this not error?