Skip to content

Commit e03a602

Browse files
committed
type to_clipboard kwargs to match to_csv
1 parent 59e8c0a commit e03a602

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,27 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
22302230
self,
22312231
excel: _bool = ...,
22322232
sep: _str | None = ...,
2233-
**kwargs: Any, # TODO: make more precise https://github.com/pandas-dev/pandas-stubs/issues/1174
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 = ...,
2244+
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 = ...,
22342254
) -> None: ...
22352255
@overload
22362256
def to_json(

0 commit comments

Comments
 (0)