read_csv¶
-
hhpy.ds.
read_csv
(path: str, nrows: int = None, encoding: str = None, errors: str = 'replace', kws_open: Mapping[KT, VT_co] = None, **kwargs)[source]¶ wrapper for pandas.read_csv that reads the file into an IOString first. This enables one to use the error handling params of open which is very useful when opening a file with an uncertain encoding or illegal characters that would trigger an encoding error in pandas.read_csv
Parameters: - path – path to file
- nrows – how many rows to read, defaults to all [optional]
- encoding – encoding to pass to open [optional]
- errors – how to handle errors, see open [optional]
- kws_open – other keyword arguments passed to open [optional]
- kwargs – other keyword arguments passed to pandas.read_csv [optional]
Returns: