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

Add pandas cookbook to tutorials (for #5837) #5842

Merged
merged 1 commit into from
Jan 7, 2014
Merged

Add pandas cookbook to tutorials (for #5837) #5842

merged 1 commit into from
Jan 7, 2014

Conversation

jvns
Copy link
Contributor

@jvns jvns commented Jan 3, 2014

@jreback asked me to add something like this in jvns/pandas-cookbook#1

I haven't been able to test that this displays correctly as I can't figure out how to build the Sphinx docs.

If someone can tell me how to build the docs, I can test it.

bork@kiwi ~/c/p/pandas> pwd
/home/bork/clones/pandas/pandas
bork@kiwi ~/c/p/pandas> python ../doc/make.py html
Error: Cannot find source directory.
Building HTML failed
bork@kiwi ~/c/p/doc> pwd
/home/bork/clones/pandas/doc
bork@kiwi ~/c/p/doc> python make.py html
Running Sphinx v1.1.3
cannot import name hashtable
Exception occurred while building, starting debugger:
Traceback (most recent call last):
  File "/opt/anaconda/lib/python2.7/site-packages/sphinx/cmdline.py", line 188, in main
    warningiserror, tags)
  File "/opt/anaconda/lib/python2.7/site-packages/sphinx/application.py", line 102, in __init__
    confoverrides or {}, self.tags)
  File "/opt/anaconda/lib/python2.7/site-packages/sphinx/config.py", line 216, in __init__
    exec code in config
  File "/home/bork/clones/pandas/doc/source/conf.py", line 74, in <module>
    import pandas
  File "/home/bork/clones/pandas/pandas/__init__.py", line 6, in <module>
    from . import hashtable, tslib, lib
ImportError: cannot import name hashtable
> /home/bork/clones/pandas/pandas/__init__.py(6)<module>()
-> from . import hashtable, tslib, lib

@jtratner
Copy link
Contributor

jtratner commented Jan 3, 2014

That error usually means that you haven't built the C extensions yet. To
fix it, you need to go into the pandas directory and run make build. (top
level directory, not the docs directory)

After that you should be able to use python make.py html. (you may get a
few errors about latex or R that you can safely ignore)

@jvns
Copy link
Contributor Author

jvns commented Jan 4, 2014

Thanks! The reST should be right now.

@jtratner
Copy link
Contributor

jtratner commented Jan 4, 2014

@jvns I'm definitely interested in including this, but I'm concerned that, by referring to an nbviewer on a link to the raw file in Github, these links are going to be fragile. Maybe you could put this up on a GH-pages repo or on your own domain and then link to them?

@jvns
Copy link
Contributor Author

jvns commented Jan 4, 2014

yup, that's a good point. could either

  • just link to the github repository
  • link to the nbviewer chapters, but with a tagged release instead of master
    On Jan 4, 2014 1:07 AM, "Jeff Tratner" notifications@github.com wrote:

@jvns https://github.com/jvns I'm definitely interested in including
this, but I'm concerned that, by referring to an nbviewer on a link to the
raw file in Github, these links are going to be fragile. Maybe you could
put this up on a GH-pages repo or on your own domain and then link to them?


Reply to this email directly or view it on GitHubhttps://github.com//pull/5842#issuecomment-31572499
.

@jreback
Copy link
Contributor

jreback commented Jan 4, 2014

@jvns

I would also like to include some of the other links in the issue , with a sentence or so about each

of course trying to be non-duplicative about this page

feel free to reorganize the page as needed

goal is to try to have multiple different tutorials that have some overlap

@jtratner
Copy link
Contributor

jtratner commented Jan 4, 2014

A link to a tagged release would be permanent for sure and would accomplish the goal, though personally I'd prefer linking to an actual web address that can be updated. Your call.

Could you shorten this by maybe removing the chapter names and just linking the descriptions? The descriptions appear to be what the chapter actually explains which is what we need here so it can be concise.

@jvns
Copy link
Contributor Author

jvns commented Jan 4, 2014

Okay, how's this? I've linked to the v0.1 tag for each chapter, as well as the github repository with an up-to-date table of contents.

jreback added a commit that referenced this pull request Jan 7, 2014
Add pandas cookbook to tutorials (for #5837)
@jreback jreback merged commit 58ee1fb into pandas-dev:master Jan 7, 2014
@jreback
Copy link
Contributor

jreback commented Jan 7, 2014

thanks @jvns
merged this...pls take a look after 5pm today,...
changes/additions welcome!

@jreback
Copy link
Contributor

jreback commented Jan 18, 2014

@y-p put up the dev docs ....

seems your first link is broken? (rest seem ok)

http://pandas.pydata.org/pandas-docs/dev/tutorials.html#pandas-cookbook

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

Successfully merging this pull request may close these issues.

None yet

3 participants