# pysparky.debug

*module*

[View source](https://github.com/PySparky/pysparky-pyspark-helper/blob/327582f8b776fe7638082ce4b5be8153d3ce63d3/pysparky/debug.py#L1-L1)

## pysparky.debug.get_distinct_value_from_df_columns

*function*

```python
def get_distinct_value_from_df_columns(df: DataFrame, columns_names: list[str], display: bool = True) -> dict[str, list]
```

Get distinct values from specified DataFrame columns and optionally display their counts.

**Parameters**

- `df` (`DataFrame`) — The input Spark DataFrame.
- `columns_names` (`list[str]`) — List of column names to process.
- `display` (`bool`) (default: `True`) — Whether to display the counts of distinct values. Default is True.

**Returns**

- (`dict[str, list]`) — dict[str, list]: A dictionary where keys are column names and values are lists of distinct values.

[View source](https://github.com/PySparky/pysparky-pyspark-helper/blob/327582f8b776fe7638082ce4b5be8153d3ce63d3/pysparky/debug.py#L4-L26)
