A customer sent a CSV export as text. The first row is the header. Return a list of dictionaries, one per data row, with these conversions:
int.true and false (any case) become booleans.None.Fields may be quoted with double quotes and contain commas. Skip rows that are completely empty.
Implement parse_csv. Input: text: str. Returns: list[dict].
def parse_csv(text: str) -> list[dict]:
rows = []
return rows
Run executes the public tests. Submit grades against public and hidden tests.
A customer sent a CSV export as text. The first row is the header. Return a list of dictionaries, one per data row, with these conversions:
int.true and false (any case) become booleans.None.Fields may be quoted with double quotes and contain commas. Skip rows that are completely empty.
Implement parse_csv. Input: text: str. Returns: list[dict].
def parse_csv(text: str) -> list[dict]:
rows = []
return rows
Run executes the public tests. Submit grades against public and hidden tests.