Getting a long list of specific elements from a list of indexes and column coordinates in Pandas
Getting a long list of specific elements from a list of indexes and column coordinates in Pandas Question: data=pd.DataFrame([[1,2,3],[21,23,24],[31,32,33]]) i=[0,1,2] # this is same as the index y=[1,2,0] data.iloc[x,y] gives me a 3×3 df, which I do not need. I need to run this on a large df and would like to get the ELEMENTS …