Drills tagged with this skill, unpassed first. Pass them all to mark the skill ready for scenarios.
parse_csv(csv_text) that takes a CSV-formatted string (header row present) and returns a DataFrame.
Example. "a,b\n1,2\n3,4" → 2-row DataFrame with columns a and b.
Notes. Use io.StringIO to wrap the string so pd.read_csv can read it like a file. Always has a header row.to_csv_string(df) that returns the DataFrame serialized as a CSV string with header, without the index column.
Example. A df with name/score → "name,score\nAlice,85\nBob,92\n".
Notes. Include header. Skip the index column (otherwise pandas prepends an unnamed column with row numbers). Trailing newline is part of pandas' default output.parse_and_filter(csv_text, min_amount) that parses the CSV and returns only rows where amount >= min_amount.
Example. CSV of 4 orders with amounts [100, 30, 75, 10], min_amount=50 → rows with 100 and 75.
Notes. Preserve row order from the CSV. min_amount higher than every value → empty DataFrame.