Spot the bug in the paid-row marker

from pandas
Python 3.14 intermediate 4 min 1 issue to find

Find why this function does not mark paid rows in the original DataFrame.

Python
def mark_paid(orders):
    paid = orders[orders["paid"]]
    paid["status"] = "ready"
    return orders
Open in playground
Report an error