File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1405,7 +1405,7 @@ Clipboard
1405
1405
1406
1406
A handy way to grab data is to use the ``read_clipboard `` method, which takes
1407
1407
the contents of the clipboard buffer and passes them to the ``read_table ``
1408
- method described in the next section . For instance, you can copy the following
1408
+ method. For instance, you can copy the following
1409
1409
text to the clipboard (CTRL-C on many operating systems):
1410
1410
1411
1411
.. code-block :: python
@@ -1419,7 +1419,7 @@ And then import the data directly to a DataFrame by calling:
1419
1419
1420
1420
.. code-block :: python
1421
1421
1422
- clipdf = pd.read_clipboard(delim_whitespace = True )
1422
+ clipdf = pd.read_clipboard()
1423
1423
1424
1424
.. ipython :: python
1425
1425
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ def read_clipboard(**kwargs): # pragma: no cover
10
10
-------
11
11
parsed : DataFrame
12
12
"""
13
+ if kwargs .get ('sep' ) is None and kwargs .get ('delim_whitespace' ) is None :
14
+ kwargs ['sep' ] = '\s+'
13
15
from pandas .util .clipboard import clipboard_get
14
16
from pandas .io .parsers import read_table
15
17
text = clipboard_get ()
You can’t perform that action at this time.
0 commit comments