suraj_datalab
is a Python package designed to streamline the process of analyzing and visualizing both categorical and numerical data. It also includes utilities for data cleaning and preparing datasets for machine learning models, like creating K-Folds for cross-validation.
- Features
- Installation
- Quickstart
- Usage
- Examples
- API Reference
- Contributing
- License
- Acknowledgments
- Contact
- Categorical Analysis: Effortlessly analyze and visualize categorical data in relation to target variables.
- Numerical Analysis: Detect, analyze, and visualize outliers in numerical data.
- Data Cleaning: Automatically handle rare categories in your datasets.
- Cross-Validation Preparation: Create K-Folds for both classification and regression tasks, including stratified K-Folds.
- Visualization: Built-in support for generating insightful plots with minimal code.
- Extensible: Designed with flexibility in mind, allowing easy extension and integration with other data processing workflows.
- Python 3.12 or higher
- pandas
- seaborn
- matplotlib
pip install suraj_datalab
Here’s how you can quickly get started with suraj_datalab
:
import pandas as pd
from suraj_datalab.analysis import analyze_categorical_feature, analyze_numerical_feature
# Sample DataFrame
data = {'Feature': ['A', 'B', 'A', 'B'], 'Transported': [True, False, True, False]}
df = pd.DataFrame(data)
# Analyze categorical feature
result = analyze_categorical_feature(df, 'Feature', 'Transported')
print(result)
For detailed usage instructions, please refer to the Usage Guide.
Check out the Examples section for practical examples of how to use the functions and classes provided by suraj_datalab
.
For a detailed reference of all available functions and classes, see the API Reference.
Contributions are welcome! Please read the Contributing Guidelines for more details.
This project is licensed under the MIT License - see the LICENSE file for details.
Thanks to all contributors who have helped with this project.
For any questions or suggestions, please contact Suraj Wate.