A Data science library for data science / data analysis teams
Project description
Dataramp
Dataramp is a Python library designed to streamline data science and data analysis workflows. It offers a collection of utility functions and tools tailored to assist data science teams in various aspects of their projects.
Key Features
1. Project Management
- Simplify project setup with a single function call to generate a standardized project directory structure.
- Organize datasets, model outputs, scripts, notebooks, and more in predefined folders for better project management.
2. Model Saving and Loading
- Save and load trained machine learning models effortlessly.
- Supports multiple formats including joblib, pickle, and keras for compatibility with diverse model types.
3. Data Exploration and Visualization
- Explore datasets and generate summary statistics with ease.
- Visualize feature distributions and missing data patterns to gain insights into your data.
4. Feature Engineering
- Handle missing data and outliers effectively.
- Drop missing columns based on user-defined thresholds and detect outliers using Tukey's Interquartile Range (IQR) method.
5. Model Evaluation and Cross-Validation
- Evaluate model performance with comprehensive metrics such as accuracy, F1-score, precision, and recall.
- Generate classification reports and support cross-validation for robust model evaluation.
6. Scaling and Normalization
- Scale and normalize data using min-max scaling and z-score normalization techniques.
- Bring features to a common scale for improved model performance.
By providing a range of functionalities, Dataramp aims to enhance productivity and efficiency in data science projects, empowering teams to focus on deriving meaningful insights from their data.
Quickstart
To get started with Dataramp in your data science projects, follow these simple steps:
You can install Dataramp via pip:
pip install dataramp
To upgrade an existing installation of Dataramp, use:
pip install --upgrade dataramp
Getting Started
Once installed, you can import the library and explore its functionality:
import dataramp as dr
Creating a New Project
To create a new project using Dataramp, run:
dr.core.create_project("project-name")
This will create a project with a structured directory layout to kickstart your project.
Project Directory Structure
project-name/
├── datasets
│ └── dataset.csv
├── outputs
│ └── models
├── README.md
└── src
├── notebooks
│ └── notebook.ipynb
└── scripts
├── ingest
└── tests
Sample Usage
import dataramp as dr # import the dataramp library
import pandas as pd
from dataramp.utils import (
describe_df,
get_cat_vars,
feature_summary,
display_missing,
get_unique_counts,
)
df = pd.read_csv("data/iris.csv") # load iris dataset
df.head() # Snapshot of your df
missing = display_missing(df)
print(missing)
Project Links
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
File details
Details for the file dataramp-1.0.1.dev181.tar.gz
.
File metadata
- Download URL: dataramp-1.0.1.dev181.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fc0877379f7dd428b969acbd61dd261adb7a3e13a9bd35345426a77f522ed4 |
|
MD5 | a10e664beba48d11c69f4638b71aabf6 |
|
BLAKE2b-256 | 8dcf09822a69c8271cb56514885a1582e482e2cef9cdddc8ae7435f796f2b7e9 |
File details
Details for the file dataramp-1.0.1.dev181-py2.py3-none-any.whl
.
File metadata
- Download URL: dataramp-1.0.1.dev181-py2.py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b39fab1aa7e90fc6ce46adbb21e04427228d46c7f0176e99cefcd5ba6433dea |
|
MD5 | b25efc055bf277f9a27eb57e6a555555 |
|
BLAKE2b-256 | 1c270b043497d819e483c2fd6dc112fc49e216b0fd7474ed712731a466b875c9 |