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
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?