Skip to content

Commit

Permalink
docs: add docs for vector.zip (#390)
Browse files Browse the repository at this point in the history
* docs: add docs for vector.zip

* Update docs/api/backends/vector.backends.awkward_constructors.rst
  • Loading branch information
Saransh-cpp committed Oct 7, 2023
1 parent e612e95 commit d181dd9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
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

0 comments on commit d181dd9

Please sign in to comment.