Matching of Numpy arrays
Project description
Match Arrays
match_arrays
lets you match the values of two NumPy arrays:
a = np.arange(100)
b = np.random.permutation(a)
idx_a, idx_b = match_arrays(a, b)
assert(np.all(a[idx_a] == b[idx_b]))
This allows you to perform a database-like join on NumPy arrays.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
match_arrays-0.0.1.tar.gz
(1.5 kB
view details)
Built Distribution
File details
Details for the file match_arrays-0.0.1.tar.gz
.
File metadata
- Download URL: match_arrays-0.0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09fe352068bb30722109ea80b62c999976ff93c3bd9494af3378c7f3be9951d1 |
|
MD5 | f2cbe5dfc863bb6186efa1458b84db83 |
|
BLAKE2b-256 | 77eae5fa74d63270dd1f5f1cebb98ff61ac4e15841a7b0974f346bf919d95650 |
File details
Details for the file match_arrays-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: match_arrays-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba8bebba1a8adda3370ff65065ed7c8dd4cb178fb593e8b132cb5a50deafe4d1 |
|
MD5 | 7102351825e05e6f5d1aeba4a4b7b7d8 |
|
BLAKE2b-256 | 75b66d51b694beabc4a7812935866acace6c90395fa5b388127f9cd3c28c9587 |