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, which by default is the comma.

Code example:

import libreriaclases as lb

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

Data1.csv(sep = ',')

Data1.analyze()

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.8.tar.gz (6.2 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.8--none-any.whl (5.9 kB view details)

Uploaded

File details

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

File metadata

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

File hashes

Hashes for libreriaclases-3.8.tar.gz
Algorithm Hash digest
SHA256 b71f262d9b3300d3c6af8841a36822f714c5da80f3b9155d1c6f54a7156e81e3
MD5 8034a799dbc886f1284a890dfe5cd77a
BLAKE2b-256 b007fc31cda94ca79c5a4606d321b0f32f5fe75a8facc7a1dbab32992f7419c7

See more details on using hashes here.

File details

Details for the file libreriaclases-3.8--none-any.whl.

File metadata

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

File hashes

Hashes for libreriaclases-3.8--none-any.whl
Algorithm Hash digest
SHA256 c102e9da7b4e099483129397d2ba7c281f8b83ef751a60602eadad4e244dd008
MD5 f96d732104b323e88c1aedf3854be578
BLAKE2b-256 ef5922565765d3510d67c2d8e24f9a7c52505412369ff7a2f4af4ea88c85cd36

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