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

panthera.numpy ns missing #12

Open
kommen opened this issue May 4, 2020 · 1 comment
Open

panthera.numpy ns missing #12

kommen opened this issue May 4, 2020 · 1 comment

Comments

@kommen
Copy link

kommen commented May 4, 2020

In https://github.com/alanmarazzi/panthera/blob/master/examples/panthera-intro.ipynb the code cell 32 reads:

(require '[panthera.numpy :refer [npy]])

However, no such namespace exists.

@alanmarazzi
Copy link
Owner

panthera.numpy doesn't exist anymore, the nb has to be updated, in the meantime you can substitute that require with (require [libpython-clj.require :refer [require-python]]) and (require-python '[numpy :as np]). Then the subsequent npy calls can be substituted with np/f-name.

So for instance this:

(-> pokemon
    (pt/subset-cols :Defense)
    ((npy :log))
    pt/head)

Becomes this:

(-> pokemon
    (pt/subset-cols :Defense)
    (np/log)
    pt/head)

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

No branches or pull requests

2 participants