mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-28 19:35:24 +00:00

See added test file. Added support for the encoding parameter, which can be passed directly to `pd.read_csv`.
14 lines
299 B
Python
14 lines
299 B
Python
from __future__ import annotations
|
|
|
|
from typing import IO, Literal
|
|
|
|
from pandas.core.frame import DataFrame
|
|
|
|
def read_csv(
|
|
filepath_or_buffer: str | IO[bytes],
|
|
*,
|
|
encoding: str | None = ...,
|
|
sep: str | None = ...,
|
|
header: int | None | Literal["infer"] = ...,
|
|
) -> DataFrame: ...
|