Skip to main content

A python package to support exploratory data analysis!

Project description

pyeda31

Category Status
CI-CD ci-cd
Testing codecov
Documentation Documentation Status
Repo Status Project Status: Active
Package Version PyPI - Version
Python Versions PyPI - Python Version

This python package creates an exploratory data analysis utility designed to streamline the initial stages of data exploration and statistic overview. The three core functions are file validation, handling missing values, and generating summary statistics. pyeda31 offers users a practical toolkit for data preprocessing and exploration, enabling them to work more efficiently with CSV datasets across various projects.

Contributors

Catherine Meng, Jessie Zhang, Zheng He

Functions

  • check_csv
    Check if the given file is a CSV file by its extension.
  • missing_value_summary
    This function is to provide a summary of missing values in the dataset.
  • get_summary_statistics
    Generate summary statistics for specified columns or all columns if none are provided.

Contributing to the Python Ecosystem

The pyeda31 package complements the Python ecosystem by providing simple and efficient tools for users to implement quick EDA in the first step of their analysis. While there are some other similar Python packages such as Sweetviz (in-depth EDA with a focus on visualization) and perform-eda (providing comprehensive EDA analysis), these tools can be too heavyweight for quick analysis. Instead, our pyeda31 package aims for simplicity and efficiency, enabling users to quickly complete the most basic and important steps, including validating dataset formats, checking for missing values, and generating statistical summaries for columns of interest. t is a lightweight alternative for small-scale tasks or for gaining an initial understanding of the dataset before in-depth research.Users can also combine pyeda31 with other visualization packages for deeper insights.

Installation

$ pip install pyeda31

Usage

pyeda31 can be used to verify the format of data files and perform basic exploratory data analysis as follows:

from pyeda31.check_csv import check_csv
from pyeda31.pymissing_values_summary import missing_values_summary
from pyeda31.data_summary import get_summary_statistics

Check if the given data file is in csv format

data_file_path = "docs/sample_data.csv"  # path to your data file
if not check_csv(data_file_path):
    raise TypeError("The given file is not in CSV format. Please check your data file.")

Check if the data file has any missing values

df = pd.read_csv(data_file_path)

missing_summary = missing_values_summary(df)
print("Missing Values Summary:")
print(missing_summary)

Get the data summary for either all columns or the specified columns of our dataset

get_summary_statistics(df)
get_summary_statistics(df, col=["numeric", "categorical"])   

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

pyeda31 was created by Catherine Meng, Jessie Zhang, Zheng He. It is licensed under the terms of the MIT license.

Credits

pyeda31 was created with cookiecutter and the py-pkgs-cookiecutter template.

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

pyeda31-1.4.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

pyeda31-1.4.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pyeda31-1.4.1.tar.gz.

File metadata

  • Download URL: pyeda31-1.4.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyeda31-1.4.1.tar.gz
Algorithm Hash digest
SHA256 c3ee7869083ca17aec7aed5a060c52ffe2725d904021ec592073a97a43f1ae68
MD5 a01c6796a61256f8a7387bb1ee52add2
BLAKE2b-256 c59e0a53c2d3e72f56f4cfeb9775a465fd90373461499a8e636c5523e55e8829

See more details on using hashes here.

File details

Details for the file pyeda31-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: pyeda31-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyeda31-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9069c0c8e15e339336a390f59e4e3904df9815d98098ba5a5ec7a99cd8137c45
MD5 911d715d353f25f8baf7c7b0f2fdf414
BLAKE2b-256 cd20139d38b0fa0eeeeb2f68650ac65c7e41f08c9ff6c213fada34d19586e35c

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