Skip to main content

Functions and tools for making Exploratory Data Analysis easy!

Project description

EDAeasy 😀

The package for quick exploratory data analysis

Instalation

pip install EDAeasy

Usage

The dataframe_summary function have relative simple summary of the columns of your dataframe for quick look at tabular data

Generate a summary DataFrame of the input DataFrame 'dataframe'.

Parameters
----------
dataframe : pandas.DataFrame
    The input DataFrame for which the summary needs to be generated.

Returns
-------
pandas.DataFrame
    A DataFrame containing summary information for each column in 'df':
    - Type: Data type of the column.
    - Min: Minimum value in the column.
    - Max: Maximum value in the column.
    - Nan %: Percentage of NaN values in the column.
    - # Unique Values: Total number of unique values in the column.
    - Unique values: List of unique values in the column.

Example
-------
>>> data = {
        'age': ['[40-50)', '[60-70)', '[70-80)'],
        'time_in_hospital': [8, 3, 5],
        'n_lab_procedures': [72, 34, 45],
        ...
    }
>>> dataframe = pd.DataFrame(data)
>>> result = dataframe_summary(df)
>>> print(result)
           Type       Min        Max  Nan %  # Unique Values                                  Unique values
Variables                                                                                                              
age       object   [40-50)    [90-100)    0.0        3      ['[70-80)', '[50-60)', '[60-70)', '[40-50)', '[80-90)', ...
time_in_hospital  int64    1           14    0.0        3        [8, 3, 5]
n_lab_procedures  int64    1          113    0.0        3        [72, 34, 45]
...

Note
----
The function uses vectorized operations to improve performance and memory usage.

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

edaeasy-1.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

edaeasy-1.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page