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

docs: add docs for vector.zip #390

Merged
merged 2 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ The easiest way to create one or many vectors is with a helper function:
- `vector.obj` to make a pure Python vector object,
- `vector.arr` to make a NumPy array of vectors (or `array`, lowercase, like `np.array`),
- `vector.awk` to make an Awkward Array of vectors (or `Array`, uppercase, like `ak.Array`).
- `vector.zip` to make an Awkward Array of vectors (similar to `ak.zip`)

### Pure Python vectors

Expand Down
8 changes: 8 additions & 0 deletions docs/api/backends/vector.backends.awkward_constructors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vector.backends.awkward_constructors module
===========================================

.. automodule:: vector.backends.awkward_constructors
:members:
:undoc-members:
:show-inheritance:
:private-members:
1 change: 1 addition & 0 deletions docs/api/backends/vector.backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Submodules
vector.backends.object
vector.backends.numpy
vector.backends.awkward
vector.backends.awkward_constructors
vector.backends._numba
vector.backends.numba_numpy
vector.backends._numba_object
5 changes: 3 additions & 2 deletions docs/usage/intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"The easiest way to create one or many vectors is with a helper function:\n",
"\n",
" * `vector.obj` to make a pure Python vector object,\n",
" * `vector.array` to make a NumPy array of vectors (lowercase, like `np.array`),\n",
" * `vector.Array` to make an Awkward Array of vectors (uppercase, like `ak.Array`)."
" * `vector.arr` to make a NumPy array of vectors (lowercase, like `np.array`),\n",
" * `vector.awk` to make an Awkward Array of vectors (uppercase, like `ak.Array`).\n",
" * `vector.zip` to make an Awkward Array of vectors (similar to `ak.zip`)"
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions src/vector/backends/awkward.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
.. code-block:: python
vector.Array(...)
vector.awk(...)
vector.zip(...)
function will have these behaviors built in (and will pass them to any derived
arrays).
Expand Down