
    Q/Ph                     N    d dl Zd dlmZ d dlmZ dedej        dej        fdZdS )    N)Settings)rename_indexconfigdfreturnc                 l    t          |          }|j                            t                    |_        |S )aN  Preprocess the dataframe

    - Appends the index to the dataframe when it contains information
    - Rename the "index" column to "df_index", if exists
    - Convert the DataFrame's columns to str

    Args:
        config: report Settings object
        df: the pandas DataFrame

    Returns:
        The preprocessed DataFrame
    )r   columnsmapstr)r   r   s     m/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/ydata_profiling/model/pandas/dataframe_pandas.pypandas_preprocessr      s-     
b		B $$BJI    )pandaspdydata_profiling.configr   ydata_profiling.utils.dataframer   	DataFramer    r   r   <module>r      sl        + + + + + + 8 8 8 8 8 8h BL R\      r   