o
    ;Di                  
   @   s   d dl mZmZmZ d dlZd dlZd dlmZ d dl	m
Z
mZ zd dlZW n eyB Z zejde dd W Y dZ[dS dZ[ww dd	 Zd
d Zdd Zdd ZdS )    )divisionprint_functionabsolute_importN)ieq)todataframefromdataframezSKIP pandas tests: %sT)allow_module_levelc                  C   s>   g d} t jj| dd  | d d}t| }||sJ d S N)foobarbaz)apples   g      @)oranges   g@)pears   g?r   r   )columns)pd	DataFramefrom_recordsr   equalstblexpectactual r   Q/var/www/Datamplify/venv/lib/python3.10/site-packages/petl/test/io/test_pandas.pytest_todataframe   s   r   c                  C   s&   g } t  }t| }||sJ d S )N)r   r   r   r   r   r   r   r   test_headerless   s   r    c                  C   sD   g d} t jj| dd  | d d}t| t| t| t| d S r	   )r   r   r   r   r   )r   dfr   r   r   test_fromdataframe"   s   r"   c                  C   s8   g d} t |  }t |}t| | t| | d S )Nr
   )etlwrapr   r   r   )r   r!   tbl2r   r   r   test_integration+   s
   

r&   )
__future__r   r   r   pytestpetlr#   petl.test.helpersr   petl.io.pandasr   r   pandasr   ImportErroreskipr   r    r"   r&   r   r   r   r   <module>   s    
	