mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-06-27 02:30:08 +00:00

**Summary** Improve factoring, type-annotation, and tests for `partition_csv()` and accommodate single-column CSV files. Fixes: #2616
13 lines
267 B
Python
13 lines
267 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],
|
|
*,
|
|
sep: str | None = ...,
|
|
header: int | None | Literal["infer"] = ...,
|
|
) -> DataFrame: ...
|