Skip to main content

A library for data manipulation, analysis, and visualization.

Project description

DataLib

DataLib is a Python library designed to simplify data manipulation, analysis, and visualization. It provides tools for both basic and advanced users, enabling efficient handling of datasets, statistical computations, and machine learning tasks.

Features

Data Manipulation

  • Load and save CSV files.
  • Normalize data.
  • Handle missing values.

Statistical Calculations

  • Compute mean, median, mode, and standard deviation.
  • Perform statistical tests (t-test, chi-squared).

Data Visualization

  • Create scatter plots, bar charts, and histograms.
  • Generate advanced visualizations like correlation matrices.

Advanced Analysis

  • Perform linear and polynomial regression.
  • Apply PCA for dimensionality reduction.
  • Use k-means clustering.
  • Perform supervised classification (k-NN, decision trees).

Installation

  1. Clone the repository:

    git clone https://github.com/riahiFarah/DataLib.git
    
  2. Navigate to the project directory:

    cd dataLibFarah
    
  3. Install the library:

    pip install .
    

Usage

Example 1: Load and Save CSV

from datalib import DataLib

df = DataLib.load_csv("data.csv")
DataLib.save_csv(df, "output.csv")

Example 2: Normalize Data

normalized_df = DataLib.normalize_data(df)

Example 3: Perform Linear Regression

x = [[1], [2], [3]]
y = [4, 5, 6]
model, coef, intercept = DataLib.linear_regression(x, y)

Development

Setting Up for Development

  1. Install development dependencies:

    pip install .[dev]
    
  2. Run tests:

    pytest tests/
    

Contributing

Contributions are welcome! Please open an issue or submit a pull request to discuss potential changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

dataLibFarah-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

dataLibFarah-0.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file dataLibFarah-0.0.1.tar.gz.

File metadata

  • Download URL: dataLibFarah-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.8

File hashes

Hashes for dataLibFarah-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1509d8265716d7bc82e4ba8cd9214225f584ec55dd2e0debc6e73ceb539fb8f7
MD5 626d9feeaef591cc0aa319f1b12a83ed
BLAKE2b-256 f8ffdad4d16e38801ef83e92a2944fa38f31eea31e1236c7e04065df58966d0f

See more details on using hashes here.

File details

Details for the file dataLibFarah-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dataLibFarah-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.8

File hashes

Hashes for dataLibFarah-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d86c25ab6c385cbfd23a1c68a94d8d726ed264a2b2edab9b230caaf37807dcf
MD5 6f59acbd5e3e1448b4b659b6056e2f63
BLAKE2b-256 6258eb75741899b5d88d5aabb8c60af72f0fb4a2e0a5523e0fb06bfd158cdf52

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