mern
mern is python library to help us process our dataset, it can process numeric and text data
Installation
pip3 install mern
or
git clone https://github.com/bluenet-analytica/mern.git && cd mern && pip3 install -r requirements.txt
1. Remove outlier in numerical data
There are 2 ways to remove data on numerical data type
- Z Score
- Inter Quartile Score Range (IQR Score)
from mern import NumericOutlier
obj = NumericOutlier()
x = [11,31,21,19,8,54,35,26,23,13,29,17]
# using Z Score
print(obj.find(x, "zscore"))
# using Inter Quartile Range Score
print(obj.find(x, "iqr"))
2. Remove outlier in text data
from mern import TextOutlier
obj = TextOutlier()
text = "abcd!G#45!"
# remove punctuation ex : !@#$%
no_punctuation = obj.remove_punctuation([text])
print(no_punctuation)
# remove stop words ex : this, the, a, etc
# tweets by @SomeGuyAbides
tweets = "Is a burning compressed liquid hydrogen as rocket fuel feasible for a propellant? Could this process be deleveloped through electrolysis of water? "
no_sw = obj.remove_stopwords([tweets], lang="english")
That's it.
Metadata
Release files for mern 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mern-0.6.tar.gz | 3.8 kB | Without provenance | Details for mern-0.6.tar.gz |
Release files / mern-0.6.tar.gz
| Download URL | mern-0.6.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e505357694a16dc9ca54a817d8f97f92b5153282fdabde2b2a01b9b708862aef
|
|
BLAKE2b-256 checksum How to use checksums |
007f8539d187953904aeb72a5e7764905ff5b62f39385ef7ae3bb27dd9ccc471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Security for mern 0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.