CSV Filter Automation Script

Job ID: 40028217

Budget: ₹600 – ₹1,500 INR

I need a lightweight Python script that automatically reads a given CSV or Excel file, extracts the rows I’m interested in, applies one or more filter conditions, and then saves or prints the filtered subset. The task is purely data-extraction focused; no sorting or aggregation is required.

Here’s what I expect to receive:

• A single, well-commented .py file that runs from the command line.
• The script should accept the source file path, filter field(s), and filter value(s) as arguments (argparse or similar is fine).
• It must handle both .csv and .xlsx inputs gracefully—feel free to use pandas, openpyxl, or the standard csv module.
• Output can be a new CSV/Excel file or a neat console printout, as long as the method is clear and easy to change.
• Include quick instructions in a README or top-of-script docstring so I can test immediately.

Clean, readable code and a fast turnaround are my priorities.