Simplify DataFrame cleaning, conversion, and MySQL interactions
Project description
Project Title
A brief description of what this project does and who it's for
DataEase
DataEase is a Python package designed to simplify data preprocessing and SQL database interaction for developers and analysts. It provides easy-to-use functions for cleaning DataFrames, converting between file formats (CSV/JSON), and managing MySQL data pipelines.
🚀 Features
🧼 DataFrame Cleaning
remove_nulls()– Drop rows with any missing valuesremove_duplicates()– Drop duplicate rowsjoin_columns()– Combine multiple columns into onedrop_constant_columns()– Remove columns with constant valuesauto_convert_types()– Automatically infer and cast data types
🔄 File Conversion
df_to_csv()andcsv_to_df()– Convert between CSV and DataFramedf_to_json()andjson_to_df()– Convert between JSON and DataFrame
💽 MySQL Utilities
connect_to_mysql()– Connect to a MySQL servercreate_table_if_not_exists()– Auto-generate MySQL schema from a DataFrameappend_df_to_table()– Append DataFrame data to a MySQL table
🔍 SQL Tools
run_query()– Execute custom SQL queriesinsert_row()– Insert row dynamically from dictionary
🛠️ SQL Query Builder
Build secure SQL queries programmatically:
from DataEase import SQLQueryBuilder
query = (
SQLQueryBuilder()
.select("orders", ["orders.id", "users.name"])
.join("INNER", "users", "orders.user_id = users.id")
.where({"users.status": "active"})
.order_by("orders.created_at", ascending=False)
.limit(5)
.build()
)
print(query)
"# SELECT orders.id, users.name FROM orders INNER JOIN users ON orders.user_id = users.id WHERE users.status='active' ORDER BY orders.created_at DESC LIMIT 5;"
---
## 👥 Contributors
- **Praveen Anand** – Project Lead and Core Developer
- **Rahul Anand** – Co-Author: MySQL integration and Testing
- **Joel Ishika Reddy Kandukuri** – Co-Author: DataFrame utilities and enhancements
---
## 🧑💻 Installation
```bash
pip install DataEase
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 dataease-0.1.0.tar.gz.
File metadata
- Download URL: dataease-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b134f8797eda938472ee7785f67558b51ebd46237ab93612060223f7b5ceb9f
|
|
| MD5 |
c4940f5487da32c3e37fb3fd10ee8496
|
|
| BLAKE2b-256 |
aae4c9d215272d3cffa7808624f97776401a194cb068358ac86e24581afaf741
|
File details
Details for the file dataease-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dataease-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49df1997192e2eb22463038c351530aeebd556a94cae77a60d8dc4afa3b4cca3
|
|
| MD5 |
63b950193a865bc2d250ed26ca82b256
|
|
| BLAKE2b-256 |
524c142a4c6615b1481f9f574d2ba2d29833861b0dcd9e3cc4a33b6a0c8089f9
|