Skip to main content

A helper package for Exploratory Data Analysis (EDA)

Project description

EDA Helper Function - Boost your Exploretory Data Analysis Process!

Credit

  • I first came to this idea of using helper function from a course by @MisbahullahSheriff and it was brilliant. This EDA helper function originally was created by @MisbahullahSheriff. Now I have edited the file and organized it for easy to use.Extra functions has been added by me.

Installation

Use in Google Colab: put the fill in the notebook's directory

import google.colab.drive as drive
drive.mount('/content/drive', force_remount=True)

import sys
import os
sys.path.append('<your_directory>')
import eda_helper_functions as ehf

Step-by-Step EDA

  • Import Libraries

  • Read training dataset, we perform EDA only on training dataset

  • High-level Analysis

    • Data Summary:

      • .info() method
      • .describe() method on numeric and categorical features separately
    • Missing Data:

      • find missing value with number and percentages

            ehf.missing_info(df)
        
      • bar plot for better visualization of missing data

           ehf.plot_missing_info(df)
        
    • Outliers:

      • Isolation forest
    • Pair plots:

          ehf.pair_plots(df)
      
    • Correlation Analysis(heatmaps):

      • Numeric(Pearson's/Spearman's)
      • Categorical(Cramer's V)
          ehf.correlation_heatmap(df)
      
          ehf.cramersV_heatmap(df)
      
  • Detailed Analysis of each Columns

        df.columns # find all columns   
    
    • Summary

          ehf.cat_summary(df, "<cat_feature>")
      
    • Univariate plots

          ehf.cat_univar_plots(df, "<cat_feature>")
      
    • Bivariate plots

          ehf.num_cat_bivar_plots(
          data=train,
          num_var="<num_feature>",
          cat_var="<cat_feature>"
          )
      
    • Hypothesis Testing(normality, strength of association)

          ehf.num_cat_bivar_plots(
          data=train,
          num_var="<num_feature>",
          cat_var="<cat_feature>"
          )
      

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

my_eda_helper-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

my_eda_helper-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file my_eda_helper-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for my_eda_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 545f957bd78f7e1df0fb309aeee0772298d018427624d7e7cf430d4fb686d42f
MD5 04ea99b442ead867734d8975877f8f73
BLAKE2b-256 9c7799c213608505cdda1db6e7579c7a23d779aa2c8d34225e7ee97efef4fa61

See more details on using hashes here.

File details

Details for the file my_eda_helper-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for my_eda_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0def8d755b8f25065a16713ee655fba2862a479a463159d38158045298cbe8be
MD5 1d33304a2cb68e645891daace30c6280
BLAKE2b-256 41be63bee1a792ec04416109a06b8a25ab8d1bf037999f6b765841787991a641

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