Skip to content
RED SAGSkills
hard20 pts · first answer countspythonpandas

A helper that changes the caller's data

After calling add_tax(df), the original df has a new column too. Why, and what is the clean fix?

def add_tax(d):
    d["tax"] = d["amount"] * 0.05
    return d
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions