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

Possible example for tech.v3.dataset.join/right-join docstring #441

Open
harold opened this issue Dec 20, 2024 · 0 comments
Open

Possible example for tech.v3.dataset.join/right-join docstring #441

harold opened this issue Dec 20, 2024 · 0 comments

Comments

@harold
Copy link
Contributor

harold commented Dec 20, 2024

user> (require '[tech.v3.dataset :as ds])
nil
user> (require '[tech.v3.dataset.join :as ds-join])
nil
user> (-> (ds-join/right-join :x
                              (ds/->dataset {:x [0 1 2 4 5]
                                             :y (repeatedly 5 rand)})
                              (ds/->dataset {:x (range 7)}))
          (ds/sort-by-column :right.x))
right-outer-join [7 3]:

| :x |         :y | :right.x |
|---:|-----------:|---------:|
|  0 | 0.17487750 |        0 |
|  1 | 0.54553611 |        1 |
|  2 | 0.89709861 |        2 |
|    |            |        3 |
|  4 | 0.99650722 |        4 |
|  5 | 0.11238939 |        5 |
|    |            |        6 |

Wrote this tonight to test my understanding, maybe it, or something similar could be included in the docstring?

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

1 participant