Skip to content

Commit 7b9f857

Browse files
Fabiana ClementeFabiana Clemente
authored andcommitted
fix: improve code with linter suggestions
1 parent b63ed9c commit 7b9f857

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

docs/advanced_settings/analytics.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
## Overview
44

55
`ydata-profiling` is a powerful library designed to generate profile reports from pandas and Spark Dataframe objects.
6-
As part of our ongoing efforts to improve user experience and functionality, `ydata-profiling` includes a telemetry feature.
7-
This feature collects anonymous usage data, helping us understand how the library is used and identify areas for improvement.
6+
As part of our ongoing efforts to improve user experience and functionality, `ydata-profiling`
7+
includes a telemetry feature. This feature collects anonymous usage data, helping us understand how the
8+
library is used and identify areas for improvement.
89

910
The primary goal of collecting telemetry data is to:
1011

@@ -13,6 +14,7 @@ The primary goal of collecting telemetry data is to:
1314
- Identify common issues and bugs to improve overall user experience
1415

1516
### Data Collected
17+
1618
The telemetry system collects non-personal, anonymous information such as:
1719

1820
- Python version
@@ -23,14 +25,18 @@ The telemetry system collects non-personal, anonymous information such as:
2325
## Disabling usage analytics
2426

2527
We respect your choice to not participate in our telemetry collection. If you prefer to disable telemetry, you can do so
26-
by setting an environment variable on your system. Disabling telemetry will not affect the functionality of the ydata-profiling library,
27-
except for the ability to contribute to its usage analytics.
28+
by setting an environment variable on your system. Disabling telemetry will not affect the functionality
29+
of the ydata-profiling library, except for the ability to contribute to its usage analytics.
30+
2831

29-
### Set an Environment Variable:
30-
Open your terminal or command prompt and set the YDATA_PROFILING_ANALYTICS environment variable to false.
32+
### Set an Environment Variable
3133

32-
### Configure it per ProfileReport
33-
Add here the
34+
Open your terminal or command prompt and set the YDATA_PROFILING_NO_ANALYTICS environment variable to false.
3435

36+
````python
37+
import os
38+
39+
os.environ['YDATA_PROFILING_NO_ANALYTICS'] = 'True'
40+
````
3541

3642

src/ydata_profiling/utils/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pathlib import Path
1212
from typing import Mapping
1313

14-
import pandas as pd
1514
import requests
1615

1716
from ydata_profiling.version import __version__

0 commit comments

Comments
 (0)