/usr/local/lib64/python3.6/site-packages/pandas/tests/extension/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/pandas/tests/extension/__pycache__/conftest.cpython-36.pyc (4883B)
3
:%Eg @ s d dl Z d dlZd dlmZ ejdd Zejdd Zejdd Zejd d
Zejdd
gddd
Z ejdd Z
ejdd Zejdd Zejdd Z
ejdd Zejdd Zejddgddd Zejdd d d d!d d"d gd#d$d%d&gd'd(d) Zejddgdd*d+ Zejddgdd,d- Zejddgdd.d/ Zejd0d1gdd2d3 Zejddgdd4d5 ZdS )6 N)Seriesc C s t dS )z3A fixture providing the ExtensionDtype to validate.N)NotImplementedError r r K/usr/local/lib64/python3.6/site-packages/pandas/tests/extension/conftest.pydtype s r c C s t dS )z
Length-100 array for this type.
* data[0] and data[1] should both be non missing
* data[0] and data[1] should not be equal
N)r r r r r data s r c C s t dS )z3Length-100 array in which all the elements are two.N)r r r r r
data_for_twos s r c C s t dS )zLength-2 array with [NA, Valid]N)r r r r r data_missing s r )paramsc C s | j dkr|S | j dkr|S dS )z5Parametrized fixture giving 'data' and 'data_missing'r r N)param)requestr r r r r all_data% s
r
c s fdd}|S )a
Generate many datasets.
Parameters
----------
data : fixture implementing `data`
Returns
-------
Callable[[int], Generator]:
A callable that takes a `count` argument and
returns a generator yielding `count` datasets.
c 3 s xt | D ]
} V q
W d S )N)range)count_)r r r gen> s zdata_repeated.
.genr )r r r )r r
data_repeated. s r c C s t dS )zn
Length-3 array with a known sort order.
This should be three items [B, C, A] with
A < B < C
N)r r r r r data_for_sortingE s r c C s t dS )z{
Length-3 array with a known sort order.
This should be three items [B, NA, A] with
A < B and NA missing.
N)r r r r r data_missing_for_sortingP s r c C s t jS )z
Binary operator for comparing NA values.
Should return a function of two arguments that returns
True if both arguments are (scalar) NA for your type.
By default, uses ``operator.is_``
)operatoris_r r r r na_cmp[ s
r c C s dS )z6The scalar missing value for this type. Default 'None'Nr r r r r na_valueh s r c C s t dS )z
Data for factorization, grouping, and unique tests.
Expected to be like [B, B, NA, NA, A, A, B, C]
Where A < B < C and NA is missing
N)r r r r r data_for_groupingn s r TFc C s | j S )z#Whether to box the data in a Series)r )r r r r
box_in_seriesz s r c C s dS )N r )xr r r