zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
U
­ý°d0 ã@sìdZddlmZddlmZddlmZddlmZm    Z    ddl
m Z ddl m Z ddlmZdd    lmZdd
lmZdd lmZdd lmZdd lmZddlmZmZmZmZddlm Z ddl!m"Z"m#Z#m$Z$ddl%m&Z&ddl'm(Z(dS)aL
Base test suite for extension arrays.
 
These tests are intended for third-party libraries to subclass to validate
that their extension arrays and dtypes satisfy the interface. Moving or
renaming the tests should not be done lightly.
 
Libraries are expected to implement a few pytest fixtures to provide data
for the tests. The fixtures may be located in either
 
* The same module as your test class.
* A ``conftest.py`` in the same directory as your test class.
 
The full list of fixtures may be found in the ``conftest.py`` next to this
file.
 
.. code-block:: python
 
   import pytest
   from pandas.tests.extension.base import BaseDtypeTests
 
 
   @pytest.fixture
   def dtype():
       return MyDtype()
 
 
   class TestMyDtype(BaseDtypeTests):
       pass
 
 
Your class ``TestDtype`` will inherit all the tests defined on
``BaseDtypeTests``. pytest's fixture discover will supply your ``dtype``
wherever the test requires it. You're free to implement additional tests.
 
All the tests in these modules use ``self.assert_frame_equal`` or
``self.assert_series_equal`` for dataframe or series comparisons. By default,
they use the usual ``pandas.testing.assert_frame_equal`` and
``pandas.testing.assert_series_equal``. You can override the checks used
by defining the staticmethods ``assert_frame_equal`` and
``assert_series_equal`` on your base test class.
 
é)ÚBaseAccumulateTests)ÚBaseCastingTests)ÚBaseConstructorsTests)ÚDim2CompatTestsÚNDArrayBacked2DTests)ÚBaseDtypeTests)ÚBaseGetitemTests)ÚBaseGroupbyTests)ÚBaseIndexTests)ÚBaseInterfaceTests)ÚBaseParsingTests)ÚBaseMethodsTests)ÚBaseMissingTests)ÚBaseArithmeticOpsTestsÚBaseComparisonOpsTestsÚ BaseOpsUtilÚBaseUnaryOpsTests)ÚBasePrintingTests)ÚBaseBooleanReduceTestsÚBaseNoReduceTestsÚBaseNumericReduceTests)ÚBaseReshapingTests)ÚBaseSetitemTestsN))Ú__doc__Z&pandas.tests.extension.base.accumulaterZ#pandas.tests.extension.base.castingrZ(pandas.tests.extension.base.constructorsrZ pandas.tests.extension.base.dim2rrZ!pandas.tests.extension.base.dtyperZ#pandas.tests.extension.base.getitemrZ#pandas.tests.extension.base.groupbyr    Z!pandas.tests.extension.base.indexr
Z%pandas.tests.extension.base.interfacer Zpandas.tests.extension.base.ior Z#pandas.tests.extension.base.methodsr Z#pandas.tests.extension.base.missingrZpandas.tests.extension.base.opsrrrrZ$pandas.tests.extension.base.printingrZ"pandas.tests.extension.base.reducerrrZ%pandas.tests.extension.base.reshapingrZ#pandas.tests.extension.base.setitemr©rrú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/extension/base/__init__.pyÚ<module>s"+