lightweight library that provides functionalities for common EDA tasks
Project description
Edazer
Edazer is a lightweight Python package for performing common exploratory data analysis (EDA) tasks.
It provides quick and intuitive methods to inspect, summarize, and understand your datasets—whether you're using pandas or polars.
Ideal for:
- Jupyter notebooks
- Fast data profiling
- Early-stage data exploration
Features
- Quick DataFrame Summaries: Instantly view info, describe, nulls, duplicates, and shape using
summarymethod - Unique Value Inspection: Easily display unique values for any or all columns.
- Type-based Column Selection: Find columns by dtype (e.g., int, float categorical).
- Flexible Subsetting: Use the
lookupmethod to view head, tail, or random samples. - Custom DataFrame Naming: Track multiple DataFrames with custom names for clarity.
Installation
pip install edazer
Quick Start with Titanic Dataset
import seaborn as sns
from edazer import Edazer
# Load the Titanic dataset from seaborn
titanic = sns.load_dataset('titanic')
# Create an Edazer instance
titanic = Edazer(titanic, backend= "pandas" ,name="titanic") # backend options : "pandas", "polars"
#Complete DataFrame summary: info | descriptive statistics | nulls| duplicates | uniques | shape
titanic.summarize_df()
# Show unique values for selected columns
titanic.show_unique_values(column_names=['class', 'embarked'], max_unique=5)
# Get columns with float dtype
print(titanic.cols_with_dtype(['float']), exact= False)
#Combine multiple methods
titanic.show_unique_values(column_names=titanic_dz.cols_with_dtype(dtypes=["object"]))
# Display the first few rows
print(titanic.lookup("head"))
#Access the df and use it like a pandas/polars df
print(titanic.df.columns)
📘 API Reference
Edazer(df, backend="pandas", name=None)
Create an analyzer instance.
df:pd.DataFrameorpl.DataFramebackend:"pandas"or"polars"(default:"pandas")name: Optional string label for the DataFrame
summarize_df()
Print summary:
- Schema/info
- Descriptive stats
- Null/duplicate counts
- Unique values
- Shape
show_unique_values(column_names=None, max_unique=10)
Show unique values for columns.
column_names: Optional list of columnsmax_unique: Max unique values to display per column
cols_with_dtype(dtypes, exact=False, return_dtype_map=False)
Return columns matching specified dtypes.
dtypes: List of type strings (e.g.["int", "object"])exact: Match full dtype string (e.g."int64")return_dtype_map: IfTrue, return{col: dtype}
lookup(option="head")
Quickly inspect data.
option:"head","tail", or"sample"
Example Output
titanic_eda.show_unique_values(column_names=titanic_dz.cols_with_dtype(dtypes=["object"]))
# Output:
sex: ['male', 'female']
embarked: ['S', 'C', 'Q', nan]
who: ['man', 'woman', 'child']
embark_town: ['Southampton', 'Cherbourg', 'Queenstown', nan]
alive: ['no', 'yes']
Contributing
Contributions are highly welcome!
https://github.com/adarsh-79/edazer (to be updated soon)
License
MIT License
Author
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 edazer-0.1.2.tar.gz.
File metadata
- Download URL: edazer-0.1.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fddb2f3f1a2a3e65e5cd9e33fb3c3efd602e752927b7f7a440c2f67bb8e0371e
|
|
| MD5 |
4ba5d0afc816133aeb64712f14fd80cd
|
|
| BLAKE2b-256 |
adf65b3c76aa6eeec68e42cf361e93d717e2ced0e0852f7e7538a0351b015037
|
File details
Details for the file edazer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: edazer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c35fa06e1d23c2f41fac6eaa4754ced2a15db31445771cf5eb27b97ea74647de
|
|
| MD5 |
7d3d5d99bb3b676e5cf7d1af4cff5ec0
|
|
| BLAKE2b-256 |
82e09a625efa63a996f72a01d26fda6cacf41fdfe40f5e52f660d93697041aff
|