No project description provided
Project description
cougar
A python C-extension for rolling window aggregations. Try to support more methods than bottleneck
and run faster than pandas
. Currently this is only a weekend project, feel free to contribute.
Installation
pip install cougar
Usage
import numpy as np
import cougar as cg
arr = np.random.rand(1_000_000)
cg.rolling_mean(arr, 1_000)
Supported Methods
Method | Time Complexity |
---|---|
sum | O(1) |
mean | O(1) |
min | O(1) |
max | O(1) |
argmin | O(1) |
argmax | O(1) |
rank | O(log n) |
quantile | O(log n) |
Benchmark
todo
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
cougar-0.4.4.tar.gz
(7.8 kB
view hashes)
Built Distributions
Close
Hashes for cougar-0.4.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 632002eec0118d119a279fe55697e99f002a8993313ab7af6214bd3d7a7f7aeb |
|
MD5 | 99ddff7f1ffcad840d37b61bfa76f0b3 |
|
BLAKE2b-256 | dce42ef71d5cf1f9a7034875b48e3ee535c3545ef98ea1ddee6376721936a051 |
Close
Hashes for cougar-0.4.4-cp311-cp311-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5fbfbd6fb2aa1565aa1e11594ed66a39566f0af9116ae560e318c2ac646bbf0 |
|
MD5 | 645d0a61928deb7d73cc7ea61d5f9b00 |
|
BLAKE2b-256 | 9c0eec8cdc297e523fac79db0d0107a554bf2ff06c7f794394844c813600e8b2 |
Close
Hashes for cougar-0.4.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4879b73499201818bc29ad74acd54d831af6876196f5b14bd26dd0757bf3f0d7 |
|
MD5 | a676d7a4073a7dad956b86b65145ce3c |
|
BLAKE2b-256 | 7a3a4cb966000b89230569b2ecce5c3216764a835d842b8bd56ca42cb3ea86c4 |
Close
Hashes for cougar-0.4.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549ce76170c44f100968c5ecc4caab9d6e18b3277db0f4c0f5a33cccca06c8c9 |
|
MD5 | d69d9f39970c6fd8c6db4f36c9a372c5 |
|
BLAKE2b-256 | 4f96cb2abfee9d406ebf9cb3f77219e36ee24b2507b1e4692c3a19414fb83d89 |
Close
Hashes for cougar-0.4.4-cp310-cp310-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c3aa3be5162d1adb554574f85a9326c80212ef634565681a11908238bbbc50b |
|
MD5 | 0c958e79058680bf357e9c66250a2970 |
|
BLAKE2b-256 | 94ae20fe344454f0609de7b2b224b70102c9f445f550e8699d9a475986d83783 |
Close
Hashes for cougar-0.4.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c913b9221feab21bb2d0806cc7d38d497128a46684e24043e36a2ee3c5edf94f |
|
MD5 | 007e2bc199976c9ad9c94d24fadb8a92 |
|
BLAKE2b-256 | 0fc38fae94e9b721721e76ab719ebb3fccd4a18c10265ac4ed019fcf7f24c9d4 |
Close
Hashes for cougar-0.4.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bedd8b3bd045d3f897724ea21ef9f20d5fb1cfde9c7f7f053259e17bdf3a259 |
|
MD5 | e0e1f8c8eaa8dd424322313c21fa6b22 |
|
BLAKE2b-256 | 496aaa0fdce2c32c2f2199d7099cd75449defe871f9e98fe809812a904fd7414 |
Close
Hashes for cougar-0.4.4-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a884a6ce9be4e6e501883e8841fa2a4a342ae077a3ae5188268d673e94a66175 |
|
MD5 | 86ed1c9fddc4b907be381febeb6d4cd4 |
|
BLAKE2b-256 | 722c960947e81c33287acea04c2f3fdc6005e591b2ed3cc5e84cc9306413cf18 |
Close
Hashes for cougar-0.4.4-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 168f362d29736f20276502e27ec43f123542308bdacb5b663ed21631c20a83cc |
|
MD5 | 58cc92ff83e9b766677a9add747dbffe |
|
BLAKE2b-256 | 46c025300d0061496bbcea09f0779a51283f88fba8cf0d3ddadd45dcb7ac69fe |
Close
Hashes for cougar-0.4.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7079ce949a4743b7f7113ba58816950860110af599d4abbcff558edc7c63ecaa |
|
MD5 | 2754dc19b9593ce39aa422a7593ce42e |
|
BLAKE2b-256 | 6244beaf4312a9214e5d2e6d684c7b5f5a80ce2f0434ac119e166ac7aef51896 |
Close
Hashes for cougar-0.4.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fa2e2e295614bc007edbff36e15bd3474d9a4212fa3399c84355e2561daabe8 |
|
MD5 | 97fda9ce6fcb828af0326ab00ca144e1 |
|
BLAKE2b-256 | 82ea25dfb0589b8f5210cc9b51e6e9614e47ddfd40b6483f9adc82c05b431b6b |
Close
Hashes for cougar-0.4.4-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49df87a0ff033858fc925d0d2a5bfa0ec5994cc92660d83436567ae71c534d9a |
|
MD5 | bbd543ee2e259a13308370c2eee6bf1d |
|
BLAKE2b-256 | ae3f1ade4169952dbe3eec9e7b586ab5823b0a33c2eaaa14b02cb67b37fe089f |