Author validate(rows) in pytest-assert style: for each row, check positive int id, an email containing '@', and a non-negative amount. Return a list with one message per defect found and assign it to result.
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.