Skip to content

GH1174 more precise kwargs in DataFrame.to_clipboard #1195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions pandas-stubs/core/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ from pandas._typing import (
CalculationMethod,
ColspaceArgType,
CompressionOptions,
CSVQuoting,
Dtype,
FilePath,
FileWriteMode,
FillnaOptions,
FormattersType,
Frequency,
Expand Down Expand Up @@ -2228,9 +2230,29 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
def take(self, indices: list, axis: Axis = ..., **kwargs: Any) -> Self: ...
def to_clipboard(
self,
excel: _bool = ...,
sep: _str | None = ...,
**kwargs: Any, # TODO: make more precise https://github.com/pandas-dev/pandas-stubs/issues/1174
excel: _bool = True,
sep: _str | None = None,
*,
path_or_buf: FilePath | WriteBuffer[bytes] | WriteBuffer[str] | None = None,
na_rep: _str = "",
float_format: _str | Callable[[object], _str] | None = None,
columns: list[HashableT1] | None = None,
header: _bool | list[_str] = True,
index: _bool = True,
index_label: Literal[False] | _str | list[HashableT2] | None = None,
mode: FileWriteMode = "w",
encoding: _str | None = None,
compression: CompressionOptions = "infer",
quoting: CSVQuoting = ...,
quotechar: _str = '"',
lineterminator: _str | None = None,
chunksize: int | None = None,
date_format: _str | None = None,
doublequote: _bool = True,
escapechar: _str | None = None,
decimal: _str = ".",
errors: _str = "strict",
storage_options: StorageOptions = None,
) -> None: ...
@overload
def to_json(
Expand Down
Loading