

def fromcsv(source=None, encoding=None, errors='strict', **csvargs):
    "\n    Extract a table from a delimited file. E.g.::\n\n        >>> import petl as etl\n        >>> import csv\n        >>> # set up a CSV file to demonstrate with\n        ... table1 = [['foo', 'bar'],\n        ...           ['a', 1],\n        ...           ['b', 2],\n        ...           ['c', 2]]\n        >>> with open('example.csv', 'w') as f:\n        ...     writer = csv.writer(f)\n        ...     writer.writerows(table1)\n        ...\n        >>> # now demonstrate the use of fromcsv()\n        ... table2 = etl.fromcsv('example.csv')\n        >>> table2\n        +-----+-----+\n        | foo | bar |\n        +=====+=====+\n        | 'a' | '1' |\n        +-----+-----+\n        | 'b' | '2' |\n        +-----+-----+\n        | 'c' | '2' |\n        +-----+-----+\n\n    The `source` argument is the path of the delimited file, all other keyword\n    arguments are passed to :func:`csv.reader`. So, e.g., to override the\n    delimiter from the default CSV dialect, provide the `delimiter` keyword\n    argument.\n\n    Note that all data values are strings, and any intended numeric values will\n    need to be converted, see also :func:`petl.transform.conversions.convert`.\n\n    "
    source = read_source_from_arg(source)
    errors.setdefault('dialect', 'excel')
    return fromcsv_impl(source=source, encoding=encoding, errors=errors, **csvargs)

dataset/ETHPy150Open alimanfoo/petl/petl/io/csv.py fromcsv/VarMisuse@32/499 `csvargs`->`errors`