Store a DataFrame in result with three features of each review's text:
length: number of charactersexclamations: number of ! charactersmentions_refund: 1 if the word "refund" appears in any case, else 0import pandas as pd
reviews = pd.DataFrame({
"review_id": [1, 2, 3, 4, 5],
"text": ["Great product, fast delivery!", "Worst experience!!! I want a refund", "ok",
"Delivery was late. Asking for REFUND now!", "Loved it"],
})Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.