Skip to content
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

DOC: add to_clipboard example in io.rst #3784

Closed
jreback opened this issue Jun 6, 2013 · 14 comments · Fixed by #3845
Closed

DOC: add to_clipboard example in io.rst #3784

jreback opened this issue Jun 6, 2013 · 14 comments · Fixed by #3845
Labels
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jun 6, 2013

No description provided.

@nipunbatra
Copy link
Contributor

Would this simple example suffice:

  • Create a df from random data
  • write it to clip board
  • read from clipboard into another df
  • show that both df's are same

I can do a PR on this. Any other use case which can be shown?

@jreback
Copy link
Contributor Author

jreback commented Jun 10, 2013

yes

@nipunbatra
Copy link
Contributor

Did this method not exist in 0.11.0? Nevertheless, will pull and install master.

@jreback
Copy link
Contributor Author

jreback commented Jun 10, 2013

has existed for quite a while actually, just not advertised

@nipunbatra
Copy link
Contributor

On 0.11.0 strange results for me.
Pandas object has to_clipboard, whereas DataFrame doesn't

In [12]: pd.__version__
Out[12]: '0.11.0'    

In [18]: pd.to_
pd.to_clipboard  pd.to_datetime

In [14]: df
Out[14]: 

          0         1         2
0 -0.091543  0.263893 -0.833832
1 -1.046011 -0.542817 -2.112595
2 -1.071786  0.913624 -1.692184
3  0.311833  0.810733 -1.115800
4 -0.626098  0.556968 -0.442151

In [18]: df.to_clipboard()
AttributeError: 'DataFrame' object has no attribute 'to_clipboard'

@jreback
Copy link
Contributor Author

jreback commented Jun 10, 2013

that may have been added for consistency...don't know when ..its there now

@nipunbatra
Copy link
Contributor

From the io docs page:

The Pandas I/O api is a set of top level reader functions accessed like pd.read_csv() that generally return a pandas object.

Shouldn't it be more clearly told to be DataFrame instead of pandas object?

@jreback
Copy link
Contributor Author

jreback commented Jun 11, 2013

nope
some functions can return other types of objects

@cpcloud
Copy link
Member

cpcloud commented Jun 11, 2013

examples: read_html returns a list...you could read a Panel from an HDFStore...

@nipunbatra
Copy link
Contributor

Right. Thanks for clarifiying

On Tue, Jun 11, 2013 at 6:47 AM, Phillip Cloud [email protected]:

examples: read_html returns a list...you could read a Panel from an
HDFStore...


Reply to this email directly or view it on GitHubhttps://github.com//issues/3784#issuecomment-19236075
.

@nipunbatra
Copy link
Contributor

Doc build sort of hangs at 97% on IO.
I guess slow internet is the issue. Can't build the docs currently!

@jreback
Copy link
Contributor Author

jreback commented Jun 11, 2013

just wait a bit it's doing a lot of hmm parsing (this is a bug getting fixed soon)

@cpcloud
Copy link
Member

cpcloud commented Jun 11, 2013

@jreback i'm assuming ur talking about the html stuff....i submitted a pr.. can u take a glance at it? thanks. will merge if u think it's ok

@jreback
Copy link
Contributor Author

jreback commented Jun 11, 2013

yep
will try your fix tomortow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants