In week 10 of the data science foundations course, a solution was provided regarding queries in the planetary data set to filter the dataset according to certain conditions. Two methods were taught:
Using the for loop but the result didn’t match my results which I tried to cross-check through describe command for data frames
DataFrame indexing was used where the bitwise ‘&’ operator was used and in this case, results didn’t match again.
The dataset was used from the one available in the seaborn library.
So, the question is whether anyone has faced the same issue so that I could clear my doubts and secondly why the bitwise ‘&’ operator was used and how does it work.
Anyone with any sort of help is welcome.