Skip to main content

Removing outliers using IQR(Interquartile) range(25%-75%).

Project description

Outlier row removal using inter quartile range

Project 2 : UCS633

Submitted By: Pritpal Singh Pruthi 101883058


pypi: https://pypi.org/project/topsis-ppruthi-101883058/


IQR Interquartile range Description

Any data can be described by its five-number summary. These five numbers,consist of (in ascending order):

The minimum or lowest value of the dataset.
The first quartile Q1, which represents a quarter of the way through the list of all data.
The median of the data set, which represents the midpoint of the whole list of data.
The third quartile Q3, which represents three-quarters of the way through the list of all data.
The maximum or highest value of the data set.

Calculation of acceptable data

IQR = Q3-Q1
lower=Q1-(1.5*IQR)
upper=Q3+(1.5*IQR)

The data values present in between the lower and upper are acceptable and the rest are outliers and hence being removed.

Installation

Use the package manager pip to install removal system.

pip install Outlier-removal-101883058

How to use this package:

Outlier-removal-101883058 can be run as done below:

In Command Prompt

>> outliers students.csv 

Sample dataset

Marks Students
3 S1
57 S2
65 S3
98 S4
43 S5
44 S6
54 S7
99 S8
1 S9

Output dataset after removal

Marks Students
57 S2
65 S3
98 S4
43 S5
44 S6
54 S7

It is clearly visible that the rows S1,S8 and S9 have been removed from the dataset.

License

MIT

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

Outlier-removal-101883058-1.0.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Outlier_removal_101883058-1.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file Outlier-removal-101883058-1.0.3.tar.gz.

File metadata

  • Download URL: Outlier-removal-101883058-1.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for Outlier-removal-101883058-1.0.3.tar.gz
Algorithm Hash digest
SHA256 fc9f4c99446d11c85b2bd8e6971dd8f3ce755f4af0b57334d0b8ff03e3c9a094
MD5 01f0c7fc890d5ec71cd6ec7afc73b3e5
BLAKE2b-256 4efbae6fac2b77efcdd35eb828c1cb50b7d429b1af03f5ddde902230665baec3

See more details on using hashes here.

File details

Details for the file Outlier_removal_101883058-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: Outlier_removal_101883058-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for Outlier_removal_101883058-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef08ae668a2bd3150643b0d6e8334b7c9cb0c45a041d266e93230ad0c917202
MD5 b49bcbd722966d64da390f3438243fd8
BLAKE2b-256 80fbf470b54f1c0eb28cf7b833af262ab15ec76417685d5c43cbb2b8706759ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page