Skip to main content

perform_eda

The perform_eda function is used to conduct Exploratory Data Analysis (EDA) on a given dataset. It provides various insights and visualizations to help understand the data.

Function Signature

Install my-project with npm

  def perform_eda(data):

Usage

 perform_eda(data)

Functionality

The perform_eda function performs the following steps:

  1. Prints the dimensions of the dataset.
  2. Displays the data types of each column in the dataset.
  3. Provides summary statistics for the dataset.
  4. Checks for missing values and displays the count of null values for each column.
  5. Identifies duplicate rows in the dataset and prints the count of duplicate rows.
  6. Visualizes the distributions and relationships in the data:
    • For categorical variables, generates bar plots showing the value counts for each category.
    • For numeric variables, generates histograms, box plots, scatter plots (numeric vs. numeric), and kernel density plots.
  7. Displays a correlation matrix heatmap.
  8. Generates a pairwise scatter plot for numeric variables.
  9. For categorical variables, if there are more than one, generates cross-tabulation bar plots to visualize the relationships between different categorical variables.
  10. Displays a heatmap showing the locations of missing values in the dataset.
  11. If a target variable name is provided, calculates the correlation between each feature and the target variable and displays a bar plot of the feature correlations with the target variable.
  12. Detects outliers in numeric variables by calculating z-scores and identifying values that exceed a threshold of 3 standard deviations from the mean.

Note: Replace <target_variable_name> with the actual name of your target variable to enable the feature correlation analysis.

Dependencies

The perform_eda function requires the following libraries:

  • pandas
  • numpy
  • matplotlib.pyplot
  • seaborn
  • scipy.stats.ttest_ind

Make sure to have these libraries installed in your Python environment before using the function.

Example

import pandas as pd

# Load your dataset
data = pd.read_csv('your_dataset.csv')

# Perform EDA
perform_eda(data)

linkedin

Metadata

Release files for perform-eda 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for perform-eda 0.1.1
File Size Uploaded Provenance Actions
perform_eda-0.1.1.tar.gz 3.2 kB Without provenance Details for perform_eda-0.1.1.tar.gz

Release files / perform_eda-0.1.1.tar.gz

Download URL perform_eda-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
02265e677f13b57a189a97203058fe257bb06f90e65ad81bc5696088b0991108
BLAKE2b-256 checksum
How to use checksums
8b8d9276794548c25406116b892f762d990c9087017b0b24fc1a1ac59cfa6649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Security for perform-eda 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page