From 712ee6762598f22a270722537d728a862cbcc64b Mon Sep 17 00:00:00 2001 From: Fabiana <30911746+fabclmnt@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:46:49 +0100 Subject: [PATCH] feat: remove dark and orange model from inputs --- examples/features/theme_flatly_demo.py | 1 - src/ydata_profiling/config.py | 4 ++-- src/ydata_profiling/profile_report.py | 4 ---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/features/theme_flatly_demo.py b/examples/features/theme_flatly_demo.py index 6d7121224..45f5ecefa 100644 --- a/examples/features/theme_flatly_demo.py +++ b/examples/features/theme_flatly_demo.py @@ -16,7 +16,6 @@ report = ProfileReport( df, title="Coal Prices (IMF)", - dark_mode=True, html={ "style": { "logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAArCAYAAADIWo5HAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AIMFC0AShJOrwAACuVJREFUaN7tmWnMpXV5xn//7dnec867DTMvzsAww2xUsYVCYyEYbVUgBSPSRm1iE/nQJk0a28TYxdgmGhJbSRdJl9TGllZR0ZombZq0SRdRC12cqGDJIINI4J31Xc+z/7d+eA6TpuknGHghmevDOck5eZ7nPte5l+u6/3AJl3AJl3AJLz9+5SO/rO69/zfFqy0u/Uo9aG11/W1bZ7fOPPL8E9954BN/MLe9vaXOnDp/TaL1DWVVduPxeCMfzf39lz//UCWE4Lqbb1Rr61vi2SeedC9nXC/bP/LJP/09uWdu+eC/P/rogaqs31KV5Xud8/HcuXP/BnFvhMz7cCCGcHlZljHL0q4o5v7x4NUHzj/1vadCmuflZZfteqqs6y+/+923n3v00f/Sn/7jz/SvCQLe9YGfkbkz781M+rHnnntut7NuHCOUZYn3Hu8dRhuEECilmE5LlpaX6Pse7z1CwFwxR5Im9frGx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DIwLTAyLTEyVDIwOjQ1OjAwKzAwOjAwz7DySAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wMi0xMlQyMDo0NTowMCswMDowML7tSvQAAAAASUVORK5CYII=" diff --git a/src/ydata_profiling/config.py b/src/ydata_profiling/config.py index e4756f77b..3fdcef09c 100644 --- a/src/ydata_profiling/config.py +++ b/src/ydata_profiling/config.py @@ -410,7 +410,7 @@ class Config: "duplicates": None, "vars": {"cat": {"redact": True}, "text": {"redact": True}}, }, - "dark_mode": { + "flatly_theme": { "html": { "style": { "theme": Theme.flatly, @@ -418,7 +418,7 @@ class Config: } } }, - "orange_mode": { + "united_theme": { "html": { "style": { "theme": Theme.united, diff --git a/src/ydata_profiling/profile_report.py b/src/ydata_profiling/profile_report.py index 08ee64a0d..2f382f568 100644 --- a/src/ydata_profiling/profile_report.py +++ b/src/ydata_profiling/profile_report.py @@ -72,8 +72,6 @@ def __init__( sortby: Optional[str] = None, sensitive: bool = False, explorative: bool = False, - dark_mode: bool = False, - orange_mode: bool = False, sample: Optional[dict] = None, config_file: Optional[Union[Path, str]] = None, lazy: bool = True, @@ -125,8 +123,6 @@ def __init__( groups = [ (explorative, "explorative"), (sensitive, "sensitive"), - (dark_mode, "dark_mode"), - (orange_mode, "orange_mode"), ] if any(condition for condition, _ in groups):