Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/pandas/tests/reshape/concat/__pycache__/test_invalid.cpython-37.pyc
Назад
B �5�g� � @ sN d dl mZ d dlZd dlZd dlmZmZmZ d dl m Z G dd� d�ZdS )� )�StringION)� DataFrame�concat�read_csvc @ s e Zd Zdd� Zdd� ZdS )�TestInvalidConcatc C s` t �dd�}xNdi ddgdgD ]:}dt|�� d�}tjt|d�� t||g� W d Q R X qW d S )N� � � )r r z#cannot concatenate object of type 'z+'; only Series and DataFrame objs are valid)�match)�tm�makeCustomDataframe�type�pytest�raises� TypeErrorr )�self�df1�obj�msg� r �^/home/digitalm-up/venv/lib/python3.7/site-packages/pandas/tests/reshape/concat/test_invalid.py�test_concat_invalid s z%TestInvalidConcat.test_concat_invalidc C s� t �dd�}d}tjt|d�� t|� W d Q R X tdd� td�D �� d}tt|�d d ��}t|dd�}W d Q R X tt|��}t � ||� d S ) Nr r z^first argument must be an iterable of pandas objects, you passed an object of type "DataFrame")r c s s | ]}t tj�d d ��V qdS )� N)r �np�randomZrand)�.0�_r r r � <genexpr>&