403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pandas/tests/groupby/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pandas/tests/groupby/__pycache__/test_all_methods.cpython-312.pyc
�

/	�g�	���dZddlZddlZddlmZddlmZddlm	Z	d�Z
d�Zejjdejddgd	�
�ejj!dd	dg�
�g�d��Zy)a;
Tests that apply to all groupby operation methods.

The only tests that should appear here are those that use the `groupby_func` fixture.
Even if it does use that fixture, prefer a more specific test file if it available
such as:

 - test_categorical
 - test_groupby_dropna
 - test_groupby_subclass
 - test_raises
�N)�	DataFrame)�get_groupby_method_argsc�v�tgggd��jgd��}|jgd�d��}t||�}t	||�}|dk(rt
nd}d}t
j||��5||�j}ddd�|j}t
j|�y#1swY�,xYw)N��a�b�cF)�
group_keys�fillna�%DataFrameGroupBy.fillna is deprecated��match)
r�	set_index�groupby�getattrr�
FutureWarning�tm�assert_produces_warning�index�assert_index_equal)	�groupby_func�df�gb�method�args�warn�warn_msg�result�expecteds	         �GC:\Python312\Lib\site-packages\pandas/tests/groupby/test_all_methods.py�,test_multiindex_group_all_columns_when_emptyr!s���	��"�2�.�	/�	9�	9�/�	J�B�	���O���	6�B�
�R��
&�F�"�<��4�D�(�H�4�=�$�D�6�H�	�	#�	#�D��	9�%����$�$��%��x�x�H����&�(�+�%�%�s�4B/�/B8c���|dk(r1d}|jtjj|���t	gd�gd�gd�gtd���}t
||�}|jd	|�
�}|dk(rtnd}d}tj||�
�5t||�|�}	ddd�|jgd�d��}
t
||
�}|
jd	|�
�}|dk(rtnd}d}tj||�
�5t||�|�}
ddd�|dvr
jddi��}
tj	
�y#1swY��xYw#1swY�DxYw)N�corrwithz:GH#50845 - corrwith fails when there are duplicate columns)�reason)���)r%��)����abb��columnsr)�as_indexrrr
rr%)�axis)�size�ngroup�cumcountr	r)�applymarker�pytest�mark�xfailr�listrrrrrr�set_axis�rename�assert_equal)�requestrr0�msgrrrrrr�expected_df�
expected_args�expected_gbrs              r �test_duplicate_columnsrB%s^���z�!�J�����F�K�K�-�-�S�-�9�:�	�I�y�)�4�d�5�k�	J�B�"�<��4�D�	���C�(��	+�B�(�H�4�=�$�D�6�H�	�	#�	#�D��	9�2�*���\�*�D�1��2��+�+�o�A�+�6�K�+�L�+�F�M��%�%�c�H�%�=�K�(�H�4�=�$�D�6�H�	�	#�	#�D��	9�F�5�7�;��5�}�E��F��9�9��?�?�C��:�?�6���O�O�F�H�%�2�2��F�F�s�E�
E �E� E)�idxr�foo)�name)�rrrF�bar)�namesc��|dvrtjd|���tddgg|��}|jdg�}t	||�}|dk(rt
nd}d}t
j||��5t||�|�}ddd�jd	k(sJ�t
j|j|�y#1swY�;xYw)
N>r2r3r4zNot applicable for r%r.rrrr
)r%r*)r6�skiprrrrrrr�shaperr/)rrCr�grp_byrrrrs        r �test_dup_labels_output_shaperM>s����5�5����)�,��8�9�	�Q��F�8�S�	)�B�
�Z�Z���_�F�"�<��4�D�(�H�4�=�$�D�6�H�	�	#�	#�D��	9�6�.����.��5��6��<�<�6�!�!�!����&�.�.�#�.�	6�6�s�1B;�;C)�__doc__r6�pandas�pdr�pandas._testing�_testingr�pandas.tests.groupbyrr!rBr7�parametrize�Index�
MultiIndex�from_tuplesrM��r �<module>rZs��������8�,�&�2�����	�����#�s��%�(�
�
�
�!�!�":�5�%�.�!�Q���/��/rY

Youez - 2016 - github.com/yon3zu
LinuXploit