2.4.1.2. pycsamt.io.parsers#
Functions
|
Read a table‐like file into a pandas object using the Config parser map. |
|
Write a pandas‐like object to disk using Config writers. |
- pycsamt.io.parsers.read_any(path, **kwargs)[source]
Read a table‐like file into a pandas object using the Config parser map.
- Parameters:
path (str) – Path to file. Extension must be one of Config().parsers.keys().
**kwargs – Passed directly to the pandas reader (e.g. sep, sheet_name, parse_dates, etc.)
- Return type:
DataFrame or similar
- pycsamt.io.parsers.write_any(obj, path, **kwargs)[source]
Write a pandas‐like object to disk using Config writers.
- Parameters:
obj (pandas.DataFrame or similar)
path (str) – Output path with one of the Config.writers() extensions.
**kwargs – Passed directly to the pandas writer (e.g. index, compression, etc.)