I have an array that some rows have inf value in all columns. I need to remved these rows. for this I used the folowing code:
finding_all_infValue=np.asarray(BD[BD.min(axis=1) != np.inf])
but I also need to know which columns are deleted and I need their index. how can I find the index of reomve columns or save them in a new array? Thanks.