{"id":15297473,"url":"https://github.com/alibahaari/peaksvalleys","last_synced_at":"2025-04-13T23:16:17.822Z","repository":{"id":46825184,"uuid":"406625088","full_name":"AliBahaari/PeaksValleys","owner":"AliBahaari","description":"Detect peaks and valleys in a list of numbers.","archived":false,"fork":false,"pushed_at":"2021-09-24T10:27:38.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T23:16:08.712Z","etag":null,"topics":["python","python-3","python-module","python-package","python-script","python3","python36","python37"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/PeaksValleys/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliBahaari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-15T05:26:58.000Z","updated_at":"2024-12-25T23:42:34.000Z","dependencies_parsed_at":"2022-08-22T23:20:29.643Z","dependency_job_id":null,"html_url":"https://github.com/AliBahaari/PeaksValleys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2FPeaksValleys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2FPeaksValleys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2FPeaksValleys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliBahaari%2FPeaksValleys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliBahaari","download_url":"https://codeload.github.com/AliBahaari/PeaksValleys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794569,"owners_count":21162615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-3","python-module","python-package","python-script","python3","python36","python37"],"created_at":"2024-09-30T19:17:46.588Z","updated_at":"2025-04-13T23:16:17.795Z","avatar_url":"https://github.com/AliBahaari.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PeaksValleys\n\nConsider you have a list containing multiple numbers. By using ***PeaksValleys*** package, you can find and detect peaks and valleys.\n\n\n## Screenshots\n\n![PeaksValleys Screenshot](https://user-images.githubusercontent.com/8419324/134659955-6ad34a8a-df35-4c7c-bdf5-de7e0bb6e643.png)\n\n\n## Usage\n\n```python\nfrom PeaksValleys import detectPeaksValleys\nimport random\nimport pandas as pd\n\n\nrandItems = random.sample(range(1, 200), 100)\ndata = {\n    'Numbers': randItems\n}\ndf = pd.DataFrame(data=data)\n\nprint(detectPeaksValleys(df['Numbers'], 21, 8))\n```\n\nAs you see, `detectPeaksValleys` has 3 parameters:\n```python\ndetectPeaksValleys(dataframeSeries, rollingNumber, averageSize):\n```\n\n1. `dataframeSeries` is series created by `pandas` package\n2. `rollingNumber` is a number for smoothing numbers sequence (the higher number, the smoother sequence)\n3. `averageSize` is a count of numbers creating an interval for detecting peaks and valleys (the less number, the more peaks and valleys)\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibahaari%2Fpeaksvalleys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falibahaari%2Fpeaksvalleys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibahaari%2Fpeaksvalleys/lists"}