Handle Missing Data
Project description
Handling Missing Data
This package has been created based on Project 3 of course UCS633(DATA ANALYSIS AND VISUALISATION ) Thapar University, Patiala
Nishant Goel
COE17
Roll number: 101703376
Output is a DataFrame with all NaN removal
Installation
pip install nishant_missing_data_76
Recommended - test it out in a virtual environment.
Upgrade
pip install nishant_missing_data_76 --upgrade
To use via command line
missing_data_cli_76 in.csv out.csv
Drop rows with NaN
missing_data_cli_76 in.csv out.csv DROP 0
Drop columns with NaN
missing_data_cli_76 in.csv out.csv DROP 1
Forward filling
missing_data_cli_76 in.csv out.csv FILL 0
Backward filling
missing_data_cli_76 in.csv out.csv FILL 1
Imputing with mean
missing_data_cli_76 in.csv out.csv IMPUTE 0
Imputing with median
missing_data_cli_76 in.csv out.csv IMPUTE 1
Imputing with mode
missing_data_cli_76 in.csv out.csv IMPUTE 2
To use in .py script
from nishant_miss_data_76 import dropvalue,filler,imputer
df=pd.read_csv('file1.csv')
nd=dropvalue(df,0)
nd=dropvalue(df,1)
nd=imputer(df,0)//mean
nd=imputer(df,1)//median
nd=imputer(df,2)//mode
nd=filler(df,along=0)
nd=filler(df,along=1)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nishant_miss_data_76-1.2.1.tar.gz.
File metadata
- Download URL: nishant_miss_data_76-1.2.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e295e28b639dab96601cc189c8aac8c7bde4f51b8686ba8664b2f2b990932c77
|
|
| MD5 |
fb262eab0b69d7f1ef1c641cec127b87
|
|
| BLAKE2b-256 |
08bbc5eb13afcc692379b98f78365275eed28351f4a4a45224946fe2e989423a
|
File details
Details for the file nishant_miss_data_76-1.2.1-py3-none-any.whl.
File metadata
- Download URL: nishant_miss_data_76-1.2.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ef46b849d687136ce3325edf739ca31aee9ff065183af5e24970c5345c7bdeb
|
|
| MD5 |
19d61601d21c2f8bd3cad6bfb984d504
|
|
| BLAKE2b-256 |
425720b9f5ff74b251fd1dec38649bcb18ae23d4741648c2ea2b1b2a231fff57
|