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
-
Clone the repository:
git clone https://github.com/riahiFarah/DataLib.git
-
Navigate to the project directory:
cd dataLibFarah
-
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
-
Install development dependencies:
pip install .[dev]
-
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1509d8265716d7bc82e4ba8cd9214225f584ec55dd2e0debc6e73ceb539fb8f7
|
|
| MD5 |
626d9feeaef591cc0aa319f1b12a83ed
|
|
| BLAKE2b-256 |
f8ffdad4d16e38801ef83e92a2944fa38f31eea31e1236c7e04065df58966d0f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d86c25ab6c385cbfd23a1c68a94d8d726ed264a2b2edab9b230caaf37807dcf
|
|
| MD5 |
6f59acbd5e3e1448b4b659b6056e2f63
|
|
| BLAKE2b-256 |
6258eb75741899b5d88d5aabb8c60af72f0fb4a2e0a5523e0fb06bfd158cdf52
|