Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pandas/tests/extension/__pycache__/conftest.cpython-37.pyc
Назад
B �5�g� � @ s� d dl Z d dlZd dlmZ ejdd� �Zejdd� �Zejdd� �Zejd d � �Zejdd gd�dd � �Z ejdd� �Z ejdd� �Zejdd� �Zejdd� �Z ejdd� �Zejdd� �Zejddgd�dd� �Zejdd� d d� d!d� d"d� gd#d$d%d&gd'�d(d)� �Zejddgd�d*d+� �Zejddgd�d,d-� �Zejddgd�d.d/� �Zejd0d1gd�d2d3� �Zejddgd�d4d5� �ZdS )6� N)�Seriesc C s t �dS )z3A fixture providing the ExtensionDtype to validate.N)�NotImplementedError� r r �U/home/digitalm-up/venv/lib/python3.7/site-packages/pandas/tests/extension/conftest.py�dtype 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>