-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Io to clipboard #3845
Io to clipboard #3845
Conversation
|
|
||
.. ipython:: python | ||
|
||
obj=pd.read_clipboard() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to asssign here...just pd.read_clipboard()
(its like ipython, will just print the results)
also...these can all be in a single ipython:: python directive
and giong to need to change the note to conform with #3848
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do i need to send another PR? or can this be edited?
@nipunreddevil If you update your banch that will be reflected here. |
OK. Whats the note to be now put in the documentation? On Thu, Jun 13, 2013 at 5:18 PM, Andy Hayden [email protected]:
|
Updated to put code in one ipython block and note reflects documentation from docstring. |
|
||
.. note:: | ||
|
||
You may need to install xlip or xsel (with gtk or PyQt4 modules) on Linux to use these methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be xclip
There was a problem hiding this comment.
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
.
Thanks for spotting the typo! |
Fixed the typo. The docs still take ever so long to build! |
you should rebase on master, that prob was fixed a few commits ago
|
Added documentation for to_clipboard().
Closes #3784