Skip to content

Commit 4b13264

Browse files
committed
Modified to reflect usage of pypaperclip and put all code in one block
1 parent ccac771 commit 4b13264

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

doc/source/io.rst

+6-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _io:
1+
False.. _io:
22

33
.. currentmodule:: pandas
44

@@ -1231,10 +1231,6 @@ And then import the data directly to a DataFrame by calling:
12311231
12321232
clipdf
12331233
1234-
.. note::
1235-
1236-
You may need to install xsel on Linux to be able to read from the clipboard.
1237-
12381234
The ``to_clipboard`` method can be used to write the contents of a DataFrame to
12391235
the clipboard. Following which you can paste the clipboard contents into other
12401236
applications (CTRL-V on many operating systems). Here we illustrate writing a
@@ -1243,24 +1239,15 @@ DataFrame into clipboard and reading it back.
12431239
.. ipython:: python
12441240
12451241
df=pd.DataFrame(randn(5,3))
1246-
1247-
.. ipython:: python
1248-
12491242
df
1250-
1251-
.. ipython:: python
1252-
1253-
df.to_clipboard()
1254-
1255-
.. ipython:: python
1256-
1257-
obj=pd.read_clipboard()
1243+
df.to_clipboard()
1244+
pd.read_clipboard()
12581245
1259-
.. ipython:: python
1246+
We can see that we got the same content back, which we had earlier written to the clipboard.
12601247

1261-
obj
1248+
.. note::
12621249

1263-
We can see that we got the same content back, which we had earlier written to the clipboard.
1250+
You may need to install xlip or xsel (with gtk or PyQt4 modules) on Linux to use these methods.
12641251

12651252

12661253

0 commit comments

Comments
 (0)