Steve Canny a468b2de3b
rfctr(csv): accommodate single column CSV files (#3483)
**Summary**
Improve factoring, type-annotation, and tests for `partition_csv()` and
accommodate single-column CSV files.

Fixes: #2616
2024-08-06 00:48:37 +00:00

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: ...