I've a DataFrame "A" and a list of indices "I". I want to generate/get a DataFrame "B" which contains only the data in those indices "I" of the original DataFrame "A". How can I achieve this?
Assuming I = [1, 3]
, I tried this A.filter(items=I, axis=0)
is this the right way, or is there an even better way to do it.