
    Q/PhD                     T    d Z ddlZddlZddlmZmZmZ  G d dej                  Z	dS )z1
    Logger function for ydata-profiling reports
    N)analytics_featurescalculate_nrowsis_running_in_databricksc                   J     e Zd Zej        fdedef fdZdeddf fdZ	 xZ
S )ProfilingLoggernamelevelc                 L    t                                          ||           d S )N)super__init__)selfr   r	   	__class__s      \/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/ydata_profiling/utils/logger.pyr   zProfilingLogger.__init__   s#    u%%%%%    
timeseriesreturnNc           	      r   	 t          |j                  }n# t          $ r d}Y nw xY wt          |          }t	          |t
          j                  rd}d}n|d}d}nd}d}t                      }|rdnd}t          ||||||           t                      
                    d	| d
| d
| d           d S )Nr   pandasregularcomparesparkr   tabular)	dataframedatatypereport_typenrowsncolsdbxzE[PROFILING] Calculating profile with the following characteristics - z | .)lencolumnsAttributeErrorr   
isinstancepd	DataFramer   r   r   info)
r   dfr   r   r   r   r   r   r   r   s
            r   info_def_reportzProfilingLogger.info_def_report   s   	
OOEE 	 	 	EEE	  ##b",'' 	$ I#KKZ I#KKI#K&((#-<<<9#	
 	
 	
 	
 	;; ;'; ;,7; ; ;	
 	
 	
 	
 	
s    '')__name__
__module____qualname__loggingINFOstrintr   boolr(   __classcell__)r   s   @r   r   r      s        /6| & &S & & & & & & &!
d !
t !
 !
 !
 !
 !
 !
 !
 !
 !
 !
r   r   )
__doc__r,   r   r$   ydata_profiling.utils.commonr   r   r   Loggerr    r   r   <module>r6      s                  %
 %
 %
 %
 %
gn %
 %
 %
 %
 %
r   