emarket_data_explorer.shopee_eda

This module provides the Shopee EDA functionality.

Todo:

  1. need to decouple this workflow for shopee from do_eda(). this need to works more generically

class emarket_data_explorer.shopee_eda.EDAResponse(result: List[str], error: int)

data model to response to controller

error: int

Alias for field number 1

result: List[str]

Alias for field number 0

class emarket_data_explorer.shopee_eda.ShopeeEDA(**kwargs)

this class provides EDA functionality

clean_data() None

correct the wrong column value for ‘price’

create_preprocessed_dataframes() None

the pre-processed step before creating the charts

create_tags() None

extract and collect the tag (string before #, like #cool)

do_eda() EDAResponse

perform the workflow of the entire EDA

evaluation(the_str: str) Any

make string transforms to its original type such as ‘{‘A’:1}’ –> {‘A’:1}

make_figure1() None

create the 1st chart

make_figure2() None

create the 2nd chart

make_figure3() None

create the 3rd chart

make_figure4() None

create the 4th chart

make_figure5() None

create the 5th chart

make_figure6() None

create the 6th chart

make_figures(charts: list) EDAResponse

run iteratively to create the specified charts

make_pics_html(fig_object, num) int

create the final report file in html and the pictures of each chart

prepare_figures_header() None

creates the EDA report title

process_rating() None

input the content to evaluation for conversion

rotate_color() str

rotate the color of the chart created by matplotlib

save_preprocessed_dataframes() None

save the preprocessed data into two csvs