1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
| from typing import (
| Hashable,
| Literal,
| )
|
| import numpy as np
|
| from pandas._typing import (
| ArrayLike,
| Dtype,
| npt,
| )
|
| STR_NA_VALUES: set[str]
|
| def sanitize_objects(
| values: npt.NDArray[np.object_],
| na_values: set,
| ) -> int: ...
|
| class TextReader:
| unnamed_cols: set[str]
| table_width: int # int64_t
| leading_cols: int # int64_t
| header: list[list[int]] # non-negative integers
| def __init__(
| self,
| source,
| delimiter: bytes | str = ..., # single-character only
| header=...,
| header_start: int = ..., # int64_t
| header_end: int = ..., # uint64_t
| index_col=...,
| names=...,
| tokenize_chunksize: int = ..., # int64_t
| delim_whitespace: bool = ...,
| converters=...,
| skipinitialspace: bool = ...,
| escapechar: bytes | str | None = ..., # single-character only
| doublequote: bool = ...,
| quotechar: str | bytes | None = ..., # at most 1 character
| quoting: int = ...,
| lineterminator: bytes | str | None = ..., # at most 1 character
| comment=...,
| decimal: bytes | str = ..., # single-character only
| thousands: bytes | str | None = ..., # single-character only
| dtype: Dtype | dict[Hashable, Dtype] = ...,
| usecols=...,
| error_bad_lines: bool = ...,
| warn_bad_lines: bool = ...,
| na_filter: bool = ...,
| na_values=...,
| na_fvalues=...,
| keep_default_na: bool = ...,
| true_values=...,
| false_values=...,
| allow_leading_cols: bool = ...,
| skiprows=...,
| skipfooter: int = ..., # int64_t
| verbose: bool = ...,
| float_precision: Literal["round_trip", "legacy", "high"] | None = ...,
| skip_blank_lines: bool = ...,
| encoding_errors: bytes | str = ...,
| ) -> None: ...
| def set_noconvert(self, i: int) -> None: ...
| def remove_noconvert(self, i: int) -> None: ...
| def close(self) -> None: ...
| def read(self, rows: int | None = ...) -> dict[int, ArrayLike]: ...
| def read_low_memory(self, rows: int | None) -> list[dict[int, ArrayLike]]: ...
|
| # _maybe_upcast, na_values are only exposed for testing
|
| def _maybe_upcast(
| arr, use_dtype_backend: bool = ..., dtype_backend: str = ...
| ) -> np.ndarray: ...
|
|