Skip to main content

Libreria preproceso

Project description

PBLgrupo6

Preprocessing library PBL group 6

Prerequisites

For this code, the following libreries are required:

  • numpy
  • pandas
  • scipy
  • sys
  • time

How to use

These are the steps you need to follow to clean your dataset:

  1. Introduce your path in the class. --> ex: Variable = libreria.DataAnalysis(path).
  2. Read your data with pandas:
  • CSV: use the function Variable.csv().
  • Excel: usa the function Variable.excel().
  1. Start cleaning your dataset using Variable.analyze().
  2. Visualize the dataframe using the function Variable.visualize()
  3. Save the dataframe using Variable.save()

If you want to see this information while running the code, use the function Variable.info()

Extra: These analysis criteria can be changed:

  • variable 1 = Percentage of empty data to recommend deleting the column (0.3 by default)
  • variable 2 = Normal distribution displacement to assume skewed distribution (0.05 by default) To do so, create a file named 'values.txt' with the values separated with commas and without any space. Example: "0.3,0.05"

The separation character for the csv can be changed by introducing a diferent character in the function.

Code example:

import libreriaclases as lb

Data1=lb.DataAnalysis('example.csv')

Data1.csv(sep = ',')

Data1.analyse()

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

libreriaclases-3.6.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

libreriaclases-3.6-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file libreriaclases-3.6.tar.gz.

File metadata

  • Download URL: libreriaclases-3.6.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for libreriaclases-3.6.tar.gz
Algorithm Hash digest
SHA256 cdeb601d870f9acbfcc719865f09a57b10fa0d2912d3962bb086274faa8179fa
MD5 3d125ccb0f3d441ee3c6924a3f06cd9b
BLAKE2b-256 764083c871f21d348ffbb2c78695ba35d0ae9ffdac87e1d86e18074427de6db8

See more details on using hashes here.

File details

Details for the file libreriaclases-3.6-py3-none-any.whl.

File metadata

  • Download URL: libreriaclases-3.6-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for libreriaclases-3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 75f60a2a69870f89f7539ee933173a0ab8c7b36ef4f38ec5ccbcca07c29dd216
MD5 c4b7374e4def38c7a1f55ebf9fe41bd1
BLAKE2b-256 49c962eefb281a5c298fe3e1210f7b2e7a02371eaa9d09c66f6629a881ea7483

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