
    bcg*                     $    d Z ddlZd Zd ZddZy)z1
Module that contains different utils functions.
    Nc                 N    	 t        j                  |        y # t        $ r Y y w xY wN)osmakedirsOSError)names    N/var/www/html/bid-api/venv/lib/python3.12/site-packages/catboost/eval/utils.pymake_dirs_if_not_existsr
      s%    
D s    	$$c                 \    |j                  t        t        | j                                     S r   )joinmapstrtolist)rowseps     r	   series_to_liner      s    88CSZZ\*++    c                 |    	 ddl m}m}  |d        || |       y # t        $ r ddl m}  || d|       Y y w xY w)	Nr   )iplotinit_notebook_modeT)	connected)filename)plotF)	auto_openr   )plotly.offliner   r   	Exceptionr   )fig	file_namer   r   r   s        r	   	save_plotr      s:    7<T*cI& 7'SEI67s    ;;r   )__doc__r   r
   r   r    r   r	   <module>r"      s    
,7r   