diff --git a/docs/advanced_settings/analytics.md b/docs/advanced_settings/analytics.md index e8b3de7a9..39a7da16c 100644 --- a/docs/advanced_settings/analytics.md +++ b/docs/advanced_settings/analytics.md @@ -3,8 +3,9 @@ ## Overview `ydata-profiling` is a powerful library designed to generate profile reports from pandas and Spark Dataframe objects. -As part of our ongoing efforts to improve user experience and functionality, `ydata-profiling` includes a telemetry feature. -This feature collects anonymous usage data, helping us understand how the library is used and identify areas for improvement. +As part of our ongoing efforts to improve user experience and functionality, `ydata-profiling` +includes a telemetry feature. This feature collects anonymous usage data, helping us understand how the +library is used and identify areas for improvement. The primary goal of collecting telemetry data is to: @@ -13,6 +14,7 @@ The primary goal of collecting telemetry data is to: - Identify common issues and bugs to improve overall user experience ### Data Collected + The telemetry system collects non-personal, anonymous information such as: - Python version @@ -23,14 +25,18 @@ The telemetry system collects non-personal, anonymous information such as: ## Disabling usage analytics We respect your choice to not participate in our telemetry collection. If you prefer to disable telemetry, you can do so -by setting an environment variable on your system. Disabling telemetry will not affect the functionality of the ydata-profiling library, -except for the ability to contribute to its usage analytics. +by setting an environment variable on your system. Disabling telemetry will not affect the functionality +of the ydata-profiling library, except for the ability to contribute to its usage analytics. + -### Set an Environment Variable: -Open your terminal or command prompt and set the YDATA_PROFILING_ANALYTICS environment variable to false. +### Set an Environment Variable -### Configure it per ProfileReport -Add here the +Open your terminal or command prompt and set the YDATA_PROFILING_NO_ANALYTICS environment variable to false. +````python + import os + + os.environ['YDATA_PROFILING_NO_ANALYTICS'] = 'True' +```` diff --git a/src/ydata_profiling/utils/common.py b/src/ydata_profiling/utils/common.py index 443addba5..92dce9c70 100644 --- a/src/ydata_profiling/utils/common.py +++ b/src/ydata_profiling/utils/common.py @@ -11,7 +11,6 @@ from pathlib import Path from typing import Mapping -import pandas as pd import requests from ydata_profiling.version import __version__