README
Introduction
It only contains one function which accept a dataframe with missing values and replace the NaNs with mean value of the value around these NaNs. The imputation is linear, e.g. [nan,nan,5,8] => [-1,2,5,8], [3,nan,nan,9] => [3,5,7,9], [1,5,nan,nan] => [1,5,9,13]
Currently only DataFrame is accepted, I may consider to support any arrry-like object in the future.
Tips
- This is actually a package for practice packaging in python. So there may be problems with the algorithm and the algorithm may not be efficient.
- There should be at least 2 non-nan value in the input, otherwise the original DataFrame will be returned.
- Only float point number is tested, so be careful if use this function with other value types
Release files for myimpute 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myimpute-0.1.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myimpute-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:6.8 kB
Release files / myimpute-0.1.1.tar.gz
| Download URL | myimpute-0.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e29c96f3a379d65b81b4639262e7ecce3f08f3e1b06323eccb1a41dd19ce3db3
|
|
BLAKE2b-256 checksum How to use checksums |
112ec6f9dfddf86cc17a826c76189b8fdadae5efc3a439d4d01cc153ee053756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Release files / myimpute-0.1.1-py3-none-any.whl
| Download URL | myimpute-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbcf9beca4a46ec7bf473cb010cde7cb8b37a20d0be7a93fd674273c86dfdf37
|
|
BLAKE2b-256 checksum How to use checksums |
d95c59a506f8abf0fc2318cca5ae5b39d59868c54c0958b0ad222d7a8e2f69c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|