Skip to content

Commit 742aa3b

Browse files
Fixed copy table to excel
Reverted a change in e1d5a27
1 parent 3147a86 commit 742aa3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/clipboards.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def read_clipboard(sep=r'\s+', **kwargs): # pragma: no cover
5555

5656
counts = {x.lstrip().count('\t') for x in lines}
5757
if len(lines) > 1 and len(counts) == 1 and counts.pop() != 0:
58-
sep = r'\t'
58+
sep = '\t'
5959

6060
if sep is None and kwargs.get('delim_whitespace') is None:
6161
sep = r'\s+'
@@ -99,7 +99,7 @@ def to_clipboard(obj, excel=True, sep=None, **kwargs): # pragma: no cover
9999
if excel:
100100
try:
101101
if sep is None:
102-
sep = r'\t'
102+
sep = '\t'
103103
buf = StringIO()
104104
# clipboard_set (pyperclip) expects unicode
105105
obj.to_csv(buf, sep=sep, encoding='utf-8', **kwargs)

0 commit comments

Comments
 (0)