File tree 1 file changed +6
-19
lines changed
1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 1
- .. _io :
1
+ False .. _io:
2
2
3
3
.. currentmodule :: pandas
4
4
@@ -1231,10 +1231,6 @@ And then import the data directly to a DataFrame by calling:
1231
1231
1232
1232
clipdf
1233
1233
1234
- .. note ::
1235
-
1236
- You may need to install xsel on Linux to be able to read from the clipboard.
1237
-
1238
1234
The ``to_clipboard `` method can be used to write the contents of a DataFrame to
1239
1235
the clipboard. Following which you can paste the clipboard contents into other
1240
1236
applications (CTRL-V on many operating systems). Here we illustrate writing a
@@ -1243,24 +1239,15 @@ DataFrame into clipboard and reading it back.
1243
1239
.. ipython :: python
1244
1240
1245
1241
df= pd.DataFrame(randn(5 ,3 ))
1246
-
1247
- .. ipython :: python
1248
-
1249
1242
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()
1258
1245
1259
- .. ipython :: python
1246
+ We can see that we got the same content back, which we had earlier written to the clipboard.
1260
1247
1261
- obj
1248
+ .. note ::
1262
1249
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 .
1264
1251
1265
1252
1266
1253
You can’t perform that action at this time.
0 commit comments