o
    LhA                     @  s  U d dl mZ d dlmZmZmZmZmZmZ d dl	m
Z
mZmZ d dlmZmZmZmZ erd dlZd dlmZmZmZmZ d dlmZ d dlmZ d dlZd d	lm Z  d d
l!m"Z" d dl#m$Z$ d dl%m&Z&m'Z' d dl(m)Z) d dl*m+Z+ d dl,m-Z- G dd deZ.G dd dee.eZ/G dd de.eZ0G dd deee eZ1G dd deZ2G dd deZ3ede4df Z5de6d< 	 dZ7de6d < 	 ed! Z8de6d"< ed# Z9de6d$< 	 ed% Z:de6d&< 	 dZ;de6d'< 	 ed(d$d)Z<	 ed*d d)Z=	 ed+d"d)Z>ed,d-d.Z?	 ed/d-d)Z@	 ed0d.d)ZAed1dd)ZBed2d'd)ZC	 d3ZDde6d4< ed5 ZEde6d6< ed7 ZFde6d8< ed9 ZGde6d:< 	 ed; ZHde6d<< 	 ed= ZIde6d>< 	 ed? ZJde6d@< 	 edA ZKde6dB< 	 edC ZLde6dD< 	 edE ZMde6dF< 	 edG ZNde6dH< 	 edI ZOde6dJ< 	 edK ZPde6dL< 	 edM ZQde6dN< 	 edOdPd)ZRdQZSde6dR< dSZTde6dT< dUZUde6dV< dWZVde6dX< dYZWde6dZ< d[ZXde6d\< d]ZYde6d^< 	 d_ZZde6d`< daZ[de6db< dcZ\de6dd< deZ]de6df< dgZ^de6dh< 	 diZ_de6dj< 	 dkZ`de6dl< 	 edmZadnZbde6do< dpZcde6dq< edZede6dr< dsZfde6dt< 	 duZgde6dv< dwZhde6dx< e4Zide6dy< dzZjde6d{< d|Zkde6d}< d~Zlde6d< dZmde6d< dZnde6d< g dZodS )    )annotations)TYPE_CHECKINGAnyLiteralProtocolTypeVarUnion)CompliantDataFrameCompliantLazyFrameCompliantSeries)BackendEagerAllowedIntoBackendLazyAllowedN)IterableMappingSequenceSized)Decimal)
ModuleType)	TypeAlias)dtypes)_NativeIbis)	DataFrame	LazyFrame)Expr)Schema)Seriesc                   @  s$   e Zd Zed
ddZdddZd	S )NativeFramereturnr   c                 C     d S N selfr"   r"   P/var/www/html/Persson_Maskin/env/lib/python3.10/site-packages/narwhals/typing.pycolumns      zNativeFrame.columnsargskwargsc                 O  r    r!   r"   r$   r(   r)   r"   r"   r%   join       zNativeFrame.joinN)r   r   r(   r   r)   r   r   r   )__name__
__module____qualname__propertyr&   r+   r"   r"   r"   r%   r      s    r   c                   @  s   e Zd ZdS )NativeDataFrameN)r.   r/   r0   r"   r"   r"   r%   r2   !   s    r2   c                   @     e Zd ZdddZdS )	NativeLazyFramer(   r   r)   r   c                 O  r    r!   r"   r*   r"   r"   r%   explain$   r,   zNativeLazyFrame.explainNr-   )r.   r/   r0   r5   r"   r"   r"   r%   r4   #       r4   c                   @  r3   )	NativeSeriesr(   r   r)   r   c                 O  r    r!   r"   r*   r"   r"   r%   filter'   r,   zNativeSeries.filterNr-   )r.   r/   r0   r8   r"   r"   r"   r%   r7   &   r6   r7   c                   @  s   e Zd ZdddZdS )SupportsNativeNamespacer   r   c                 C  r    r!   r"   r#   r"   r"   r%   __native_namespace__*   r,   z,SupportsNativeNamespace.__native_namespace__N)r   r   )r.   r/   r0   r:   r"   r"   r"   r%   r9   )   r6   r9   c                   @  s  e Zd ZedWddZedXddZedYd	d
ZedZddZed[ddZed\ddZ	ed]ddZ
ed^ddZed_ddZed`ddZedad!d"Zedbd$d%Zedcd'd(Zeddd*d+Zeded-d.Zedfd0d1Zedgd3d4Zedhd6d7Zedid9d:Zedjd<d=Zedkd?d@ZedldBdCZedmdEdFZedndHdIZedodKdLZedpdNdOZedqdQdRZedrdTdUZdVS )sDTypesr   type[dtypes.Decimal]c                 C  r    r!   r"   r#   r"   r"   r%   r   .   r'   zDTypes.Decimaltype[dtypes.Int128]c                 C  r    r!   r"   r#   r"   r"   r%   Int1280   r'   zDTypes.Int128type[dtypes.Int64]c                 C  r    r!   r"   r#   r"   r"   r%   Int642   r'   zDTypes.Int64type[dtypes.Int32]c                 C  r    r!   r"   r#   r"   r"   r%   Int324   r'   zDTypes.Int32type[dtypes.Int16]c                 C  r    r!   r"   r#   r"   r"   r%   Int166   r'   zDTypes.Int16type[dtypes.Int8]c                 C  r    r!   r"   r#   r"   r"   r%   Int88   r'   zDTypes.Int8type[dtypes.UInt128]c                 C  r    r!   r"   r#   r"   r"   r%   UInt128:   r'   zDTypes.UInt128type[dtypes.UInt64]c                 C  r    r!   r"   r#   r"   r"   r%   UInt64<   r'   zDTypes.UInt64type[dtypes.UInt32]c                 C  r    r!   r"   r#   r"   r"   r%   UInt32>   r'   zDTypes.UInt32type[dtypes.UInt16]c                 C  r    r!   r"   r#   r"   r"   r%   UInt16@   r'   zDTypes.UInt16type[dtypes.UInt8]c                 C  r    r!   r"   r#   r"   r"   r%   UInt8B   r'   zDTypes.UInt8type[dtypes.Float64]c                 C  r    r!   r"   r#   r"   r"   r%   Float64D   r'   zDTypes.Float64type[dtypes.Float32]c                 C  r    r!   r"   r#   r"   r"   r%   Float32F   r'   zDTypes.Float32type[dtypes.String]c                 C  r    r!   r"   r#   r"   r"   r%   StringH   r'   zDTypes.Stringtype[dtypes.Boolean]c                 C  r    r!   r"   r#   r"   r"   r%   BooleanJ   r'   zDTypes.Booleantype[dtypes.Object]c                 C  r    r!   r"   r#   r"   r"   r%   ObjectL   r'   zDTypes.Objecttype[dtypes.Categorical]c                 C  r    r!   r"   r#   r"   r"   r%   CategoricalN   r'   zDTypes.Categoricaltype[dtypes.Enum]c                 C  r    r!   r"   r#   r"   r"   r%   EnumP   r'   zDTypes.Enumtype[dtypes.Datetime]c                 C  r    r!   r"   r#   r"   r"   r%   DatetimeR   r'   zDTypes.Datetimetype[dtypes.Duration]c                 C  r    r!   r"   r#   r"   r"   r%   DurationT   r'   zDTypes.Durationtype[dtypes.Date]c                 C  r    r!   r"   r#   r"   r"   r%   DateV   r'   zDTypes.Datetype[dtypes.Field]c                 C  r    r!   r"   r#   r"   r"   r%   FieldX   r'   zDTypes.Fieldtype[dtypes.Struct]c                 C  r    r!   r"   r#   r"   r"   r%   StructZ   r'   zDTypes.Structtype[dtypes.List]c                 C  r    r!   r"   r#   r"   r"   r%   List\   r'   zDTypes.Listtype[dtypes.Array]c                 C  r    r!   r"   r#   r"   r"   r%   Array^   r'   zDTypes.Arraytype[dtypes.Unknown]c                 C  r    r!   r"   r#   r"   r"   r%   Unknown`   r'   zDTypes.Unknowntype[dtypes.Time]c                 C  r    r!   r"   r#   r"   r"   r%   Timeb   r'   zDTypes.Timetype[dtypes.Binary]c                 C  r    r!   r"   r#   r"   r"   r%   Binaryd   r'   zDTypes.BinaryN)r   r<   )r   r=   )r   r?   )r   rA   )r   rC   )r   rE   )r   rG   )r   rI   )r   rK   )r   rM   )r   rO   )r   rQ   )r   rS   )r   rU   )r   rW   )r   rY   )r   r[   )r   r]   )r   r_   )r   ra   )r   rc   )r   re   )r   rg   )r   ri   )r   rk   )r   rm   )r   ro   )r   rq   ) r.   r/   r0   r1   r   r>   r@   rB   rD   rF   rH   rJ   rL   rN   rP   rR   rT   rV   rX   rZ   r\   r^   r`   rb   rd   rf   rh   rj   rl   rn   rp   rr   r"   r"   r"   r%   r;   -   sr    r;   r   zSeries[Any]r   IntoExprIntoDataFrame)r4   r   IntoLazyFrame)rt   ru   	IntoFrame)DataFrame[Any]LazyFrame[Any]Frame
IntoSeries
IntoFrameT)boundIntoDataFrameTIntoLazyFrameTFrameTrw   rx   
DataFrameT
LazyFrameTSeriesTIntoSeriesTz+Literal["pyarrow", "numpy_nullable"] | NoneDTypeBackend)
bkbmbgbtbbytes	kilobytes	megabytes	gigabytes	terabytesSizeUnit)nsusmssTimeUnit)backwardforwardnearestAsofJoinStrategy)leftrightnonebothClosedInterval)
horizontalverticaldiagonalConcatMethod)r   r   FillNullStrategy)innerr   fullcrosssemiantiJoinStrategy)minmaxfirstlastsummeanmedianlenPivotAgg)averager   r   denseordinal
RankMethod)r   higherlowermidpointlinearRollingInterpolationMethod)anyr   r   r   UniqueKeepStrategy)r   r   LazyUniqueKeepStrategy)r   allModeKeepStrategy_ShapeTztuple[int, ...]znp.ndarray[_ShapeT, Any]_NDArrayz_NDArray[tuple[int]]_1DArrayz1np.ndarray[tuple[int], np.dtype[np.integer[Any]]]_1DArrayIntz_NDArray[tuple[int, int]]_2DArrayz_NDArray[tuple[int, ...]]
_AnyDArrayznp.generic[Any]_NumpyScalarz_1DArray | _NumpyScalarInto1DArrayzint | float | DecimalNumericLiteralz.dt.date | dt.datetime | dt.time | dt.timedeltaTemporalLiteralz<NumericLiteral | TemporalLiteral | str | bool | bytes | NoneNonNestedLiteralz.NonNestedLiteral | list[Any] | tuple[Any, ...]PythonLiteralzdtypes.NumericType | dtypes.TemporalType | dtypes.String | dtypes.Boolean | dtypes.Binary | dtypes.Categorical | dtypes.Unknown | dtypes.ObjectNonNestedDTypez#dtypes.DType | type[NonNestedDType]	IntoDTypez#Mapping[str, dtypes.DType] | Schema
IntoSchema_TzAslice[_T, Any, Any] | slice[Any, _T, Any] | slice[None, None, _T]_Slicezslice[None, None, None]
_SliceNoneSingleIndexSelectorz_Slice[int] | _SliceNone_SliceIndexz Sequence[int] | _T | _1DArrayIntSizedMultiIndexSelectorz)_SliceIndex | SizedMultiIndexSelector[_T]MultiIndexSelectorSingleNameSelectorz_Slice[str] | _SliceNone
_SliceNamezSequence[str] | _T | _1DArraySizedMultiNameSelectorz'_SliceName | SizedMultiNameSelector[_T]MultiNameSelectorz(SingleIndexSelector | SingleNameSelectorSingleColSelectorz.MultiIndexSelector[_T] | MultiNameSelector[_T]MultiColSelector)r   r	   r
   r   r   r   ry   r   r   rt   r}   rs   rv   r{   rz   r   r   )p
__future__r   typingr   r   r   r   r   r   narwhals._compliantr	   r
   r   narwhals._typingr   r   r   r   datetimedtcollections.abcr   r   r   r   decimalr   typesr   numpynptyping_extensionsr   narwhalsr   narwhals._namespacer   narwhals.dataframer   r   narwhals.exprr   narwhals.schemar   narwhals.seriesr   r   r2   r4   r7   r9   r;   strrs   __annotations__rt   ru   rv   ry   rz   r{   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   intr   r   r   r   r   r   r   r   r   r   __all__r"   r"   r"   r%   <module>   s     ;
		
