Screen Link:
Exploring Data With Pandas | Dataquest
In the example given in DQ, could we have simply used f500_sel.loc[combined] and ignored ‘final-cols’ to extract the new data frame ? The mission exercise seems to be suggesting the same.
‘Combined’ is the boolean consisting of & operator
SOLUTION to mission exercise ( with only the boolean operator and without columns)
large_revenue = f500[“revenues”] > 100000
negative_profits = f500[“profits”] < 0
combined = large_revenue & negative_profits
big_rev_neg_profit = f500[combined]