def recfromcsv(fname, **kwargs):
<EOL>kwargs.setdefault("<STR_LIT>", "<STR_LIT>")<EOL>kwargs.setdefault("<STR_LIT>", True)<EOL>kwargs.setdefault("<STR_LIT>", "<STR_LIT:U+002C>")<EOL>kwargs.setdefault("<STR_LIT>", None)<EOL>output = genfromtxt(fname, **kwargs)<EOL>usemask = kwargs.get("<STR_LIT>", False)<EOL>if usemask:<EOL><INDENT>from numpy.ma.mrecords import MaskedRecords<EOL>output = output.view(MaskedRecords)<EOL><DEDENT>else:<EOL><INDENT>output = output.view(np.recarray)<EOL><DEDENT>return output<EOL>
Load ASCII data stored in a comma-separated file.

The returned array is a record array (if ``usemask=False``, see
`recarray`) or a masked record array (if ``usemask=True``,
see `ma.mrecords.MaskedRecords`).

Parameters
----------
fname, kwargs : For a description of input parameters, see `genfromtxt`.

See Also
--------
numpy.genfromtxt : generic function to load ASCII data.

Notes
-----
By default, `dtype` is None, which means that the data-type of the output
array will be determined from the data.