Detect peaks and valleys in a list of numbers
Project description
PeaksValleys
Consider you have a list containing multiple numbers. By using PeaksValleys package, you can find and detect peaks and valleys.
Screenshots
Usage
from PeaksValleys import detectPeaksValleys
import random
import pandas as pd
randItems = random.sample(range(1, 200), 100)
data = {
'Numbers': randItems
}
df = pd.DataFrame(data=data)
print(detectPeaksValleys(df['Numbers'], 21, 8))
As you see, detectPeaksValleys
has 3 parameters:
detectPeaksValleys(dataframeSeries, rollingNumber, averageSize):
dataframeSeries
is series created bypandas
packagerollingNumber
is a number for smoothing numbers sequence (the higher number, the smoother sequence)averageSize
is a count of numbers creating an interval for detecting peaks and valleys (the less number, the more peaks and valleys)
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PeaksValleys-1.2.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file PeaksValleys-1.2.2.tar.gz
.
File metadata
- Download URL: PeaksValleys-1.2.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7637d81cb716155b38002356514f445c3f49a31fb661dedac82105cb0a13d6d |
|
MD5 | 92314a1a73b4fb45e6571ae3a024aadd |
|
BLAKE2b-256 | 71aa9c1b999eab0c037ec08681bc454b03b1f677687b0b4e24e1d32afb7c735f |
File details
Details for the file PeaksValleys-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: PeaksValleys-1.2.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f63cae96f89c957ace970fdf03763c273760424de397da123cc26a08f19ad3f |
|
MD5 | 31854f40097affaf3cb1d54d1105fb6f |
|
BLAKE2b-256 | 7885c39e4b4a44cfb363f78d24d473aad34b2570013d324056112e3ac6828bc1 |