Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ydataai/ydata-profiling
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 137564580891554c0bb09d0ee217910b1b401b05
Choose a base ref
..
head repository: ydataai/ydata-profiling
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8aad76599a00dedb15a695d8d6e863f3e18a1057
Choose a head ref
Showing with 86 additions and 37 deletions.
  1. +0 −3 .github/workflows/release.yml
  2. +1 −0 README.md
  3. +1 −1 docs/advanced_settings/analytics.md
  4. +2 −0 docs/advanced_settings/available_settings.md
  5. +3 −1 docs/advanced_settings/caching.md
  6. +2 −0 docs/advanced_settings/changing_settings.md
  7. +2 −0 docs/advanced_settings/collaborative_data_profiling.md
  8. +2 −0 docs/features/big_data.md
  9. +2 −0 docs/features/collaborative_data_profiling.md
  10. +1 −0 docs/features/comparing_datasets.md
  11. +3 −1 docs/features/custom_reports.md
  12. +2 −0 docs/features/metadata.md
  13. +1 −1 docs/features/pii_identification_management.md
  14. +3 −1 docs/features/sensitive_data.md
  15. +3 −1 docs/features/time_series_datasets.md
  16. +3 −1 docs/getting-started/concepts.md
  17. +2 −0 docs/getting-started/examples.md
  18. +2 −0 docs/getting-started/installation.md
  19. +2 −0 docs/getting-started/quickstart.md
  20. +1 −0 docs/index.md
  21. +3 −1 docs/integrations/bytewax.md
  22. +3 −1 docs/integrations/great_expectations.md
  23. +2 −0 docs/integrations/ides.md
  24. +2 −0 docs/integrations/interactive_applications.md
  25. +2 −0 docs/integrations/other_dataframe_libraries.md
  26. +2 −0 docs/integrations/pipelines.md
  27. +2 −0 docs/integrations/pyspark.md
  28. +2 −0 docs/reference/history.md
  29. +2 −0 docs/reference/resources.md
  30. +2 −0 docs/support-contribution/common_issues.md
  31. +2 −0 docs/support-contribution/contribution_guidelines.md
  32. +2 −0 docs/support-contribution/help_troubleshoot.md
  33. +1 −1 requirements-docs.txt
  34. +1 −1 src/ydata_profiling/model/description.py
  35. +7 −6 src/ydata_profiling/profile_report.py
  36. +8 −6 src/ydata_profiling/utils/common.py
  37. +4 −10 src/ydata_profiling/utils/logger.py
  38. +1 −1 src/ydata_profiling/visualisation/plot.py
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -41,9 +41,6 @@ jobs:
- name: Install
run: make install

- name: Lint
run: make lint

- name: Build package
run: make package version=${{ steps.version.outputs.value }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
[![Release Version](https://img.shields.io/github/release/ydataai/pandas-profiling.svg)](https://github.com/ydataai/pandas-profiling/releases)
[![Python Version](https://img.shields.io/pypi/pyversions/ydata-profiling)](https://pypi.org/project/ydata-profiling/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=cb7e69df-af81-4352-809a-d4251756affc" />

<p align="center"><img width="300" src="https://assets.ydata.ai/oss/ydata-profiling_black.png" alt="YData Profiling Logo"></p>

2 changes: 1 addition & 1 deletion docs/advanced_settings/analytics.md
Original file line number Diff line number Diff line change
@@ -39,4 +39,4 @@ Open your terminal or command prompt and set the YDATA_PROFILING_NO_ANALYTICS en
os.environ['YDATA_PROFILING_NO_ANALYTICS'] = 'True'
````


<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/advanced_settings/available_settings.md
Original file line number Diff line number Diff line change
@@ -121,3 +121,5 @@ Settings related with the interactions section.
Settings related with the appearance and style of the report.

{{ read_csv('./tables/config_html.csv') }}

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
4 changes: 3 additions & 1 deletion docs/advanced_settings/caching.md
Original file line number Diff line number Diff line change
@@ -6,4 +6,6 @@ If you modify the configuration in-between runs, either a new ``ProfileReport``

- *rendering* to invalidate previously rendered reports (HTML, JSON or widgets)
- *report* to remove the caching of the report's structure
- *None* (default) to invalidate all caches
- *None* (default) to invalidate all caches

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/advanced_settings/changing_settings.md
Original file line number Diff line number Diff line change
@@ -85,3 +85,5 @@ os.environ("PROFILE_TITLE")='My Custom Profiling Report'

profile = ProfileReport(df)
```

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/advanced_settings/collaborative_data_profiling.md
Original file line number Diff line number Diff line change
@@ -57,3 +57,5 @@ regulatory compliance by identifying any sensitive data.

Try today the Catalog experience in with [Fabric Community
version](http://ydata.ai/register?utm_source=ydata-profiling&utm_medium=documentation&utm_campaign=YData%20Fabric%20Community)!

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=2d9fcb48-0fa6-43d8-a0ba-fdad344050fd" />
2 changes: 2 additions & 0 deletions docs/features/big_data.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Profiling large datasets

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />

By default, `ydata-profiling` comprehensively summarizes the input
dataset in a way that gives the most insights for data analysis. For
small datasets, these computations can be performed in *quasi*
2 changes: 2 additions & 0 deletions docs/features/collaborative_data_profiling.md
Original file line number Diff line number Diff line change
@@ -69,3 +69,5 @@ regulatory compliance by identifying any sensitive data.

Try today the Catalog experience in with [Fabric Community
version](http://ydata.ai/register?utm_source=ydata-profiling&utm_medium=documentation&utm_campaign=YData%20Fabric%20Community)!

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=2d9fcb48-0fa6-43d8-a0ba-fdad344050fd" />
1 change: 1 addition & 0 deletions docs/features/comparing_datasets.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Dataset Comparison

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
!!! note "Dataframes compare support"

Profiling compare is supported from
4 changes: 3 additions & 1 deletion docs/features/custom_reports.md
Original file line number Diff line number Diff line change
@@ -89,4 +89,6 @@ Similarly, the palette for *Missing values* can be changed using ``missing`` arg

``ydata-profiling`` accepts all ``cmap`` values (colormaps) accepted by ``matplotlib``.
The list of available colour maps can [be accessed here](https://matplotlib.org/stable/tutorials/colors/colormaps.html>).
Alternatively, it is possible to create [custom palettes](https://matplotlib.org/stable/gallery/color/custom_cmap.html>).
Alternatively, it is possible to create [custom palettes](https://matplotlib.org/stable/gallery/color/custom_cmap.html>).

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/features/metadata.md
Original file line number Diff line number Diff line change
@@ -112,3 +112,5 @@ report = ProfileReport(df, title="Titanic EDA", type_schema=type_schema)

report.to_file("report.html")
```

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 1 addition & 1 deletion docs/features/pii_identification_management.md
Original file line number Diff line number Diff line change
@@ -56,4 +56,4 @@ Data governance involves establishing policies and processes to ensure high data
A PII management solution enhances data governance efforts by providing a centralized hub for overseeing PII classifications,
metadata, and related policies.


<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=2d9fcb48-0fa6-43d8-a0ba-fdad344050fd" />
4 changes: 3 additions & 1 deletion docs/features/sensitive_data.md
Original file line number Diff line number Diff line change
@@ -59,4 +59,6 @@ help developers solve these cases, was developed.

## Automated PII classification & management

You can find more details about this feature [here](pii_identification_management.md).
You can find more details about this feature [here](pii_identification_management.md).

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
4 changes: 3 additions & 1 deletion docs/features/time_series_datasets.md
Original file line number Diff line number Diff line change
@@ -151,4 +151,6 @@ profile = ProfileReport(
profile.to_file("report_timeseries.html")
```

For more questions and suggestions around time-series analysis reach us out at the [Data-Centric AI community](https://datacentricai.community/).
For more questions and suggestions around time-series analysis reach us out at the [Data-Centric AI community](https://datacentricai.community/).

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
4 changes: 3 additions & 1 deletion docs/getting-started/concepts.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Concepts
# Concepts

!!! question "Text/corpus data - your input is needed!"

@@ -106,3 +106,5 @@ For a quick overview of the data, ydata-profiling provides the following section
- First n records of a given dataset
- Last n records of a given dataset
- A table containing observed duplicates (exact matches)

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/getting-started/examples.md
Original file line number Diff line number Diff line change
@@ -46,3 +46,5 @@ across a wide range of dataset and data types:
- [HCC](https://github.com/ydataai/ydata-profiling/tree/master/examples/hcc)
(Open dataset from healthcare, showcasing compare between two sets
of data, before and after preprocessing)

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
@@ -78,3 +78,5 @@ Install these with e.g.
````console
pip install -U ydata-profiling[notebook,unicode, pyspark]
````

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/getting-started/quickstart.md
Original file line number Diff line number Diff line change
@@ -99,3 +99,5 @@ profile = ProfileReport(df, title="Profiling Report", explorative=True)
On the CLI utility `ydata_profiling`, this mode can be activated with
the `-e` flag. Learn more about configuring `ydata-profiling` on the
`../advanced_usage/available_settings`{.interpreted-text role="doc"}.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Welcome

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
Data quality profiling and exploratory data analysis are crucial steps in the process of Data Science and Machine Learning development.
YData-profiling is a leading tool in the data understanding step of the data science workflow as a pioneering Python package.

4 changes: 3 additions & 1 deletion docs/integrations/bytewax.md
Original file line number Diff line number Diff line change
@@ -185,4 +185,6 @@ comparison_report.to_file("comparison_report.html")
Now you're all set to start exploring your data streams! Bytewax takes
care of all the processes necessary to handle and structure data streams
into snapshots, which can then be summarized and compared with
ydata-profiling through a comprehensive report of data characteristics.
ydata-profiling through a comprehensive report of data characteristics.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
4 changes: 3 additions & 1 deletion docs/integrations/great_expectations.md
Original file line number Diff line number Diff line change
@@ -107,4 +107,6 @@ suite = profile.to_expectation_suite(

See [the Great Expectations
Examples](https://github.com/ydataai/ydata-profiling/blob/master/examples/features/great_expectations_example.py)
for complete examples.
for complete examples.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/integrations/ides.md
Original file line number Diff line number Diff line change
@@ -39,3 +39,5 @@ width="400px"}

To use the PyCharm Integration, right click on any dataset file and
*External Tools* \ *Data Profiling*.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/integrations/interactive_applications.md
Original file line number Diff line number Diff line change
@@ -127,3 +127,5 @@ in Panel, see \`this GitHub issue
\<https://github.com/ydataai/ydata-profiling/issues/491\>]{.title-ref}\_
and [this integration
example](https://awesome-panel.org/pandas_profiling_app).

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/integrations/other_dataframe_libraries.md
Original file line number Diff line number Diff line change
@@ -32,3 +32,5 @@ df = df.to_pandas_df()
# Convert modin DataFrame to pandas DataFrame
df = df._to_pandas()
```

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/integrations/pipelines.md
Original file line number Diff line number Diff line change
@@ -100,3 +100,5 @@ profiling_task2 = PythonOperator(

There is a community created [Kedro
plugin](https://github.com/BrickFrog/kedro-pandas-profiling) available.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=2d9fcb48-0fa6-43d8-a0ba-fdad344050fd" />
2 changes: 2 additions & 0 deletions docs/integrations/pyspark.md
Original file line number Diff line number Diff line change
@@ -128,3 +128,5 @@ The notebook example can be found
[here](https://github.com/ydataai/ydata-profiling/tree/master/examples/integrations/databricks_example.ipynb).

Stay tuned - we are going to update the documentation soon!

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=c3c3ddfc-4c47-4192-9105-5dac1ffa3a49" />
2 changes: 2 additions & 0 deletions docs/reference/history.md
Original file line number Diff line number Diff line change
@@ -85,3 +85,5 @@ New features are expected, and it will be important to learn from you
your needs and expectations so the future can be even brighter. Join the
:fontawesome-brands-discord: [DCAI community](https://datacentricai.community/) and let us know your
thoughts.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/reference/resources.md
Original file line number Diff line number Diff line change
@@ -112,3 +112,5 @@ Feel free to contribute it via a pull request on GitHub.
(PMLB)](https://epistasislab.github.io/pmlb/)
([description](https://arxiv.org/ftp/arxiv/papers/2012/2012.00058.pdf))
- [dabl package](https://github.com/dabl/dabl)

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/support-contribution/common_issues.md
Original file line number Diff line number Diff line change
@@ -42,3 +42,5 @@ computation.
Related StackOverflow questions:
- [MemoryError when using ydata_profiling
profile_report](https://stackoverflow.com/questions/67342168/memoryerror-when-using-pandas-profiling-profile-report)

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/support-contribution/contribution_guidelines.md
Original file line number Diff line number Diff line change
@@ -85,3 +85,5 @@ community](https://discord.com/invite/mw7xjJ7b7s).

Read more on getting involved in the [Contribution Guide available on
GitHub](https://github.com/ydataai/ydata-profiling/blob/master/CONTRIBUTING.md).

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 2 additions & 0 deletions docs/support-contribution/help_troubleshoot.md
Original file line number Diff line number Diff line change
@@ -83,3 +83,5 @@ for questions about `ydata-profiling` older versions.
connect with both other users and developers that might be able to
answer your questions. The **#ydata-profiling** and **#need-help**
channels are recommended for questions and issues.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=baa0e45f-0c03-4190-9646-9d8ea2640ba2" />
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mkdocs>=1.6.0,<1.7.0
mkdocs-material>=9.0.12,<10.0.0
mkdocs-material-extensions>=1.1.1,<2.0.0
mkdocs-table-reader-plugin<=2.2.1
mkdocs-table-reader-plugin<=2.2.2
mike>=2.1.1,<2.2.0
mkdocstrings[python]>=0.20.0,<1.0.0
mkdocs-badges
2 changes: 1 addition & 1 deletion src/ydata_profiling/model/description.py
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def duration(self) -> Union[timedelta, List[timedelta]]:
for i in range(len(self.date_start))
]
else:
raise ValueError()
raise TypeError()


@dataclass
13 changes: 7 additions & 6 deletions src/ydata_profiling/profile_report.py
Original file line number Diff line number Diff line change
@@ -44,11 +44,10 @@
)
from ydata_profiling.serialize_report import SerializeReport
from ydata_profiling.utils.dataframe import hash_dataframe
from ydata_profiling.utils.paths import get_config

from ydata_profiling.utils.logger import ProfilingLogger
from ydata_profiling.utils.paths import get_config

logger = ProfilingLogger(name='ReportLogger')
logger = ProfilingLogger(name="ReportLogger")


@typechecked
@@ -95,7 +94,8 @@ def __init__(
Args:
df: a pandas or spark.sql DataFrame
minimal: minimal mode is a default configuration with minimal computation
ts_mode: activates time-series analysis for all the numerical variables from the dataset. Only available for pd.DataFrame
ts_mode: activates time-series analysis for all the numerical variables from the dataset.
Only available for pd.DataFrame
sort_by: ignored if ts_mode=False. Order the dataset by a provided column.
sensitive: hides the values for categorical and text variables for report privacy
config_file: a config file (.yml), mutually exclusive with `minimal`
@@ -204,8 +204,9 @@ def __initialize_dataframe(
df: Optional[Union[pd.DataFrame, sDataFrame]], report_config: Settings
) -> Optional[Union[pd.DataFrame, sDataFrame]]:

logger.info_def_report(dataframe=type(df),
timeseries=report_config.vars.timeseries.active)
logger.info_def_report(
dataframe=type(df), timeseries=report_config.vars.timeseries.active
)

if (
df is not None
14 changes: 8 additions & 6 deletions src/ydata_profiling/utils/common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Common util functions (e.g. missing in Python)."""
import collections.abc
import contextlib
import os
import platform
import subprocess
@@ -97,11 +98,14 @@ def convert_timestamp_to_datetime(timestamp: int) -> datetime:
return datetime(1970, 1, 1) + timedelta(seconds=int(timestamp))


def analytics_features(dataframe, datatype: bool, report_type: bool):
def analytics_features(dataframe: str, datatype: str, report_type: str) -> None:
endpoint = "https://packages.ydata.ai/ydata-profiling?"
package_version = __version__

if os.getenv("YDATA_PROFILING_NO_ANALYTICS") != True:
package_version = __version__
if (
bool(os.getenv("YDATA_PROFILING_NO_ANALYTICS")) is not True
and package_version != "0.0.dev0"
):
try:
subprocess.check_output("nvidia-smi")
gpu_present = True
@@ -110,7 +114,7 @@ def analytics_features(dataframe, datatype: bool, report_type: bool):

python_version = ".".join(platform.python_version().split(".")[:2])

try:
with contextlib.suppress(Exception):
request_message = (
f"{endpoint}version={package_version}"
f"&python_version={python_version}"
@@ -122,5 +126,3 @@ def analytics_features(dataframe, datatype: bool, report_type: bool):
)

requests.get(request_message)
except Exception:
pass
14 changes: 4 additions & 10 deletions src/ydata_profiling/utils/logger.py
Original file line number Diff line number Diff line change
@@ -10,20 +10,14 @@


class ProfilingLogger(logging.Logger):
def __init__(self, name, level=logging.INFO):
def __init__(self, name: str, level: int =logging.INFO):
super().__init__(name, level)

def info(
self,
msg: object,
) -> None:
super().info(f"[PROFILING] - {msg}.")

def info_def_report(self, dataframe, timeseries: bool):
if dataframe == pd.DataFrame:
def info_def_report(self, dataframe, timeseries: bool) -> None: # type: ignore
if dataframe is pd.DataFrame:
dataframe = "pandas"
report_type = "regular"
elif dataframe == type(None):
elif dataframe is type(None):
dataframe = "pandas"
report_type = "compare"
else:
2 changes: 1 addition & 1 deletion src/ydata_profiling/visualisation/plot.py
Original file line number Diff line number Diff line change
@@ -743,7 +743,7 @@ def _plot_acf_pacf(

for ax in axes:
for item in ax.collections:
if type(item) == PolyCollection:
if type(item) is PolyCollection:
item.set_facecolor(color)

return plot_360_n0sc0pe(config)