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.1.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.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: my_eda_helper-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d2540a74779f9eda398e42951f6c7bdf51a95a51b304ef3df294a7e7eaca5e1a
MD5 40fd406a917321e299796c120da832ac
BLAKE2b-256 813b150fb75fcf12b35a1f3f34c8b00fb29afb5cb5866ba7e017d7d28d327f70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: my_eda_helper-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f08b8df2cd0a44792a7a469b62399f19e3c9e91fc23c2e99227628c5e462690
MD5 6ea0749b13e8ce7fd65896c9137876a2
BLAKE2b-256 764f8c934b550075f9202a353f54121c4211bd428dd890f319cca57df4fe21a6

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