Skip to content

Commit 1d66fa8

Browse files
committed
set defaults and fix imports
1 parent e03a602 commit 1d66fa8

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ from pandas._typing import (
8383
CalculationMethod,
8484
ColspaceArgType,
8585
CompressionOptions,
86+
CSVQuoting,
8687
Dtype,
8788
FilePath,
89+
FileWriteMode,
8890
FillnaOptions,
8991
FormattersType,
9092
Frequency,
@@ -2228,29 +2230,29 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
22282230
def take(self, indices: list, axis: Axis = ..., **kwargs: Any) -> Self: ...
22292231
def to_clipboard(
22302232
self,
2231-
excel: _bool = ...,
2232-
sep: _str | None = ...,
2233-
*,
2234-
path_or_buf: FilePath | WriteBuffer[bytes] | WriteBuffer[str],
2235-
na_rep: _str = ...,
2236-
float_format: _str | Callable[[object], _str] | None = ...,
2237-
columns: list[HashableT1] | None = ...,
2238-
header: _bool | list[_str] = ...,
2239-
index: _bool = ...,
2240-
index_label: Literal[False] | _str | list[HashableT2] | None = ...,
2241-
mode: FileWriteMode = ...,
2242-
encoding: _str | None = ...,
2243-
compression: CompressionOptions = ...,
2233+
excel: _bool = True,
2234+
sep: _str | None = None,
2235+
*,
2236+
path_or_buf: FilePath | WriteBuffer[bytes] | WriteBuffer[str] | None = None,
2237+
na_rep: _str = "",
2238+
float_format: _str | Callable[[object], _str] | None = None,
2239+
columns: list[HashableT1] | None = None,
2240+
header: _bool | list[_str] = True,
2241+
index: _bool = True,
2242+
index_label: Literal[False] | _str | list[HashableT2] | None = None,
2243+
mode: FileWriteMode = "w",
2244+
encoding: _str | None = None,
2245+
compression: CompressionOptions = "infer",
22442246
quoting: CSVQuoting = ...,
2245-
quotechar: _str = ...,
2246-
lineterminator: _str | None = ...,
2247-
chunksize: int | None = ...,
2248-
date_format: _str | None = ...,
2249-
doublequote: _bool = ...,
2250-
escapechar: _str | None = ...,
2251-
decimal: _str = ...,
2252-
errors: _str = ...,
2253-
storage_options: StorageOptions = ...,
2247+
quotechar: _str = '"',
2248+
lineterminator: _str | None = None,
2249+
chunksize: int | None = None,
2250+
date_format: _str | None = None,
2251+
doublequote: _bool = True,
2252+
escapechar: _str | None = None,
2253+
decimal: _str = ".",
2254+
errors: _str = "strict",
2255+
storage_options: StorageOptions = None,
22542256
) -> None: ...
22552257
@overload
22562258
def to_json(

0 commit comments

Comments
 (0)