Skip to content

Commit

Permalink
fix: improve code with linter suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabiana Clemente authored and Fabiana Clemente committed May 6, 2024
1 parent b63ed9c commit 7b9f857
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
22 changes: 14 additions & 8 deletions docs/advanced_settings/analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand All @@ -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'
````


1 change: 0 additions & 1 deletion src/ydata_profiling/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from pathlib import Path
from typing import Mapping

import pandas as pd
import requests

from ydata_profiling.version import __version__
Expand Down

0 comments on commit 7b9f857

Please sign in to comment.