o
    QDij                     @  sn   d dl mZ d dlmZmZ d dlZddlmZ ddlm	Z	 er&ddl
mZ ejdd	d
G dd deZdS )    )annotations)TYPE_CHECKINGAnyN   )Step)Schema)ResourceTF)kw_onlyreprc                   @  sl   e Zd ZU dZdZded< 	 ded< 	 ded< 	 ded< 	 dddZg dddiddiddii ddZdS )table_pivotzlPivot table.

    This step can be added using the `steps` parameter
    for the `transform` function.

    ztable-pivotstrf1f2f3r   aggfunresourcer   c                 C  s6   |  }|| j| j| j| j|_t |_|	  d S )N)
to_petlpivotr   r   r   r   datar   schemainfer)selfr   table r   ]/var/www/Datamplify/venv/lib/python3.10/site-packages/frictionless/steps/table/table_pivot.pytransform_resource0   s   ztable_pivot.transform_resource)r   r   r   r   typestring)required
propertiesN)r   r   )__name__
__module____qualname____doc__r   __annotations__r   metadata_profile_patchr   r   r   r   r      s&   
 
	
r   )
__future__r   typingr   r   attrspipeliner   r   r   r   r   definer   r   r   r   r   <module>   s    