Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion doc/source/io.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _io:
False.. _io:

.. currentmodule:: pandas

Expand Down Expand Up @@ -1231,6 +1231,26 @@ And then import the data directly to a DataFrame by calling:

clipdf

The ``to_clipboard`` method can be used to write the contents of a DataFrame to
the clipboard. Following which you can paste the clipboard contents into other
applications (CTRL-V on many operating systems). Here we illustrate writing a
DataFrame into clipboard and reading it back.

.. ipython:: python

df=pd.DataFrame(randn(5,3))
df
df.to_clipboard()
pd.read_clipboard()

We can see that we got the same content back, which we had earlier written to the clipboard.

.. note::

You may need to install xlip or xsel (with gtk or PyQt4 modules) on Linux to use these methods.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be xclip

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Correcting that. Had also by mistake put some text at page top.
Removing that too.
@hayd Had copied from #3848, so there also "xlip" needs to be changed to
"xclip" in the docstring :)

On Thu, Jun 13, 2013 at 6:50 PM, jreback [email protected] wrote:

In doc/source/io.rst:

+the clipboard. Following which you can paste the clipboard contents into other
+applications (CTRL-V on many operating systems). Here we illustrate writing a
+DataFrame into clipboard and reading it back.
+
+.. ipython:: python
+

  • df=pd.DataFrame(randn(5,3))
  • df
  • df.to_clipboard()
  • pd.read_clipboard()

+We can see that we got the same content back, which we had earlier written to the clipboard.
+
+.. note::
+

  • You may need to install xlip or xsel (with gtk or PyQt4 modules) on Linux to use these methods.

should be xclip


Reply to this email directly or view it on GitHubhttps://github.com//pull/3845/files#r4678338
.





.. _io.excel:

Expand Down