Skip to main content

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 values
  • remove_duplicates() – Drop duplicate rows
  • join_columns() – Combine multiple columns into one
  • drop_constant_columns() – Remove columns with constant values
  • auto_convert_types() – Automatically infer and cast data types

🔄 File Conversion

  • df_to_csv() and csv_to_df() – Convert between CSV and DataFrame
  • df_to_json() and json_to_df() – Convert between JSON and DataFrame

💽 MySQL Utilities

  • connect_to_mysql() – Connect to a MySQL server
  • create_table_if_not_exists() – Auto-generate MySQL schema from a DataFrame
  • append_df_to_table() – Append DataFrame data to a MySQL table

🔍 SQL Tools

  • run_query() – Execute custom SQL queries
  • insert_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dataease-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

dataease-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

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

Hashes for dataease-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b134f8797eda938472ee7785f67558b51ebd46237ab93612060223f7b5ceb9f
MD5 c4940f5487da32c3e37fb3fd10ee8496
BLAKE2b-256 aae4c9d215272d3cffa7808624f97776401a194cb068358ac86e24581afaf741

See more details on using hashes here.

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

Hashes for dataease-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49df1997192e2eb22463038c351530aeebd556a94cae77a60d8dc4afa3b4cca3
MD5 63b950193a865bc2d250ed26ca82b256
BLAKE2b-256 524c142a4c6615b1481f9f574d2ba2d29833861b0dcd9e3cc4a33b6a0c8089f9

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