Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
lw0404 committed Sep 24, 2024
2 parents a64c19a + 73b09ca commit 445078b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ ENV PIP_NO_CACHE_DIR=off
ENV MPLCONFIGDIR=/app/temp
# ENV RAY_USE_MULTIPROCESSING_CPU_COUNT=1
ENV RAY_DISABLE_DOCKER_CPU_WARNING=1
ENV YDATA_PROFILING_NO_ANALYTICS=True

COPY bqat/bqat_core/misc/BQAT/haarcascade_smile.xml bqat_core/misc/haarcascade_smile.xml
COPY bqat/bqat_core/misc/NISQA/conda-lock.yml .
Expand Down
17 changes: 11 additions & 6 deletions api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ def generate_report(data, **options):
temp = "report.html"
df = pd.DataFrame.from_dict(data)
# Ensure numeric columns are not categorized
df = df.apply(lambda col: pd.to_numeric(col, errors="ignore"))
numeric_columns = df.select_dtypes(include='number').columns
# print(f'----------------{numeric_columns}')
df[numeric_columns] = df[numeric_columns].apply(pd.to_numeric, downcast='float')
Expand All @@ -1077,13 +1078,17 @@ def generate_report(data, **options):
title=f"EDA Report (BQAT v{__version__})",
explorative=True,
minimal=options.get("minimal", False),
# correlations={"cramers": {"calculate": False}},
progress_bar=False,
# correlations={
# "auto": {"calculate": False},
# "pearson": {"calculate": False},
# "spearman": {"calculate": True},
# "kendall": {"calculate": False},
# "phi_k": {"calculate": False},
# "cramers": {"calculate": False},
# },
correlations=None,
vars={
"num": {
"low_categorical_threshold":0
}
},
vars={"num": {"low_categorical_threshold": 0}},
html={
"navbar_show": True,
"style": {
Expand Down

0 comments on commit 445078b

Please sign in to comment.