Skip to content

Commit 09307dd

Browse files
Upkar Lidderjreback
Upkar Lidder
authored andcommitted
CLN: GH19404 Changing function signature to match logic (#19425)
1 parent c768829 commit 09307dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ def to_pickle(self, path, compression='infer',
19061906
return to_pickle(self, path, compression=compression,
19071907
protocol=protocol)
19081908

1909-
def to_clipboard(self, excel=None, sep=None, **kwargs):
1909+
def to_clipboard(self, excel=True, sep=None, **kwargs):
19101910
"""
19111911
Attempt to write text representation of object to the system clipboard
19121912
This can be pasted into Excel, for example.

pandas/io/clipboards.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def read_clipboard(sep=r'\s+', **kwargs): # pragma: no cover
6363
return read_table(StringIO(text), sep=sep, **kwargs)
6464

6565

66-
def to_clipboard(obj, excel=None, sep=None, **kwargs): # pragma: no cover
66+
def to_clipboard(obj, excel=True, sep=None, **kwargs): # pragma: no cover
6767
"""
6868
Attempt to write text representation of object to the system clipboard
6969
The clipboard can be then pasted into Excel for example.

0 commit comments

Comments
 (0)