Skip to content

Commit d4ad5c9

Browse files
committed
1 parent d2798db commit d4ad5c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pandas-stubs/_typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ JsonSeriesOrient: TypeAlias = Literal["split", "records", "index", "table"]
738738
TimestampConvention: TypeAlias = Literal["start", "end", "s", "e"]
739739

740740
CSVEngine: TypeAlias = Literal["c", "python", "pyarrow", "python-fwf"]
741-
CSVQuoting: TypeAlias = Literal[0, 1, 2, 3]
741+
CSVQuoting: TypeAlias = Literal[0, 1, 2, 3, 4, 5]
742742

743743
HDFCompLib: TypeAlias = Literal["zlib", "lzo", "bzip2", "blosc"]
744744
ParquetEngine: TypeAlias = Literal["auto", "pyarrow", "fastparquet"]

tests/test_frame.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def test_types_to_csv() -> None:
172172
# Testing support for binary file handles, added in 1.2.0 https://pandas.pydata.org/docs/whatsnew/v1.2.0.html
173173
df.to_csv(io.BytesIO(), quoting=csv.QUOTE_ALL, encoding="utf-8", compression="gzip")
174174

175+
with ensure_clean() as path:
176+
df.to_csv(path, quoting=csv.QUOTE_STRINGS)
177+
175178

176179
def test_types_to_csv_when_path_passed() -> None:
177180
df = pd.DataFrame(data={"col1": [1, 2], "col2": [3, 4]})

0 commit comments

Comments
 (0)