I know to select items from a Pandas series using a list of indexes like so:
yields = pd.Series([26.6,23.7,28.5,14.2,17.9,24.3,29.9,11.4,25.3,16.5,21.1]) print(yields.iloc[[1,3,5]])
My question is: how do I select items that are not in a list of indexes? That is, how can I use this list of 3 indexes to select the other 8 items in the series? In other contexts, I have seen the word 'masking' used to describe what I want to do.