ZTWHHH commited on
Commit
ec64f80
·
verified ·
1 Parent(s): 8ec5a40

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/INSTALLER +1 -0
  3. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/LICENSE +20 -0
  4. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/METADATA +46 -0
  5. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/RECORD +44 -0
  6. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/REQUESTED +0 -0
  7. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/WHEEL +6 -0
  8. videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/top_level.txt +2 -0
  9. videochat2/lib/python3.10/site-packages/WebOb-1.8.9.dist-info/top_level.txt +1 -0
  10. videochat2/lib/python3.10/site-packages/opencv_python.libs/libQt5Test-c38a5234.so.5.15.0 +3 -0
  11. videochat2/lib/python3.10/site-packages/opencv_python.libs/libXau-00ec42fe.so.6.0.0 +0 -0
  12. videochat2/lib/python3.10/site-packages/opencv_python.libs/libavformat-0e2a2001.so.59.27.100 +3 -0
  13. videochat2/lib/python3.10/site-packages/opencv_python.libs/libssl-4e89c2e4.so.1.1 +3 -0
  14. videochat2/lib/python3.10/site-packages/opencv_python.libs/libswresample-c26a2b7e.so.4.7.100 +3 -0
  15. videochat2/lib/python3.10/site-packages/opencv_python.libs/libvpx-2c989c7f.so.8.0.0 +3 -0
  16. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-icccm-413c9f41.so.4.0.0 +0 -0
  17. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-image-e82a276d.so.0.0.0 +0 -0
  18. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-keysyms-21015570.so.1.0.0 +0 -0
  19. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-randr-a96a5a87.so.0.1.0 +0 -0
  20. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-render-637b984a.so.0.0.0 +0 -0
  21. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-render-util-43ce00f5.so.0.0.0 +0 -0
  22. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-shape-25c2b258.so.0.0.0 +0 -0
  23. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-shm-7a199f70.so.0.0.0 +0 -0
  24. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-sync-89374f40.so.1.0.0 +0 -0
  25. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-util-4d666913.so.1.0.0 +0 -0
  26. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xfixes-9be3ba6f.so.0.0.0 +0 -0
  27. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xinerama-ae147f87.so.0.0.0 +0 -0
  28. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xkb-9ba31ab3.so.1.0.0 +3 -0
  29. videochat2/lib/python3.10/site-packages/opencv_python.libs/libxkbcommon-x11-c65ed502.so.0.0.0 +0 -0
  30. videochat2/lib/python3.10/site-packages/pandas/tests/api/__pycache__/__init__.cpython-310.pyc +0 -0
  31. videochat2/lib/python3.10/site-packages/pandas/tests/api/__pycache__/test_api.cpython-310.pyc +0 -0
  32. videochat2/lib/python3.10/site-packages/pandas/tests/api/__pycache__/test_types.cpython-310.pyc +0 -0
  33. videochat2/lib/python3.10/site-packages/pandas/tests/api/test_api.py +258 -0
  34. videochat2/lib/python3.10/site-packages/pandas/tests/base/__init__.py +0 -0
  35. videochat2/lib/python3.10/site-packages/pandas/tests/base/test_constructors.py +174 -0
  36. videochat2/lib/python3.10/site-packages/pandas/tests/base/test_conversion.py +551 -0
  37. videochat2/lib/python3.10/site-packages/pandas/tests/base/test_transpose.py +56 -0
  38. videochat2/lib/python3.10/site-packages/pandas/tests/base/test_unique.py +121 -0
  39. videochat2/lib/python3.10/site-packages/pandas/tests/base/test_value_counts.py +320 -0
  40. videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_arithmetic.cpython-310.pyc +0 -0
  41. videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_iteration.cpython-310.pyc +0 -0
  42. videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_npfuncs.cpython-310.pyc +0 -0
  43. videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_repr.cpython-310.pyc +0 -0
  44. videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_validate.cpython-310.pyc +0 -0
  45. videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/__init__.cpython-310.pyc +0 -0
  46. videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_cat_accessor.cpython-310.pyc +0 -0
  47. videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_dt_accessor.cpython-310.pyc +0 -0
  48. videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_sparse_accessor.cpython-310.pyc +0 -0
  49. videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_str_accessor.cpython-310.pyc +0 -0
  50. videochat2/lib/python3.10/site-packages/pyparsing/__init__.py +326 -0
.gitattributes CHANGED
@@ -1289,3 +1289,9 @@ videochat2/lib/python3.10/site-packages/pandas/tests/io/formats/__pycache__/test
1289
  videochat2/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_loc.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
1290
  videochat2/lib/python3.10/site-packages/pandas/tests/tools/__pycache__/test_to_datetime.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
1291
  videochat2/lib/python3.10/site-packages/ninja/data/bin/ninja filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
1289
  videochat2/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_loc.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
1290
  videochat2/lib/python3.10/site-packages/pandas/tests/tools/__pycache__/test_to_datetime.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
1291
  videochat2/lib/python3.10/site-packages/ninja/data/bin/ninja filter=lfs diff=lfs merge=lfs -text
1292
+ videochat2/lib/python3.10/site-packages/opencv_python.libs/libswresample-c26a2b7e.so.4.7.100 filter=lfs diff=lfs merge=lfs -text
1293
+ videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xkb-9ba31ab3.so.1.0.0 filter=lfs diff=lfs merge=lfs -text
1294
+ videochat2/lib/python3.10/site-packages/opencv_python.libs/libvpx-2c989c7f.so.8.0.0 filter=lfs diff=lfs merge=lfs -text
1295
+ videochat2/lib/python3.10/site-packages/opencv_python.libs/libavformat-0e2a2001.so.59.27.100 filter=lfs diff=lfs merge=lfs -text
1296
+ videochat2/lib/python3.10/site-packages/opencv_python.libs/libssl-4e89c2e4.so.1.1 filter=lfs diff=lfs merge=lfs -text
1297
+ videochat2/lib/python3.10/site-packages/opencv_python.libs/libQt5Test-c38a5234.so.5.15.0 filter=lfs diff=lfs merge=lfs -text
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2017-2021 Ingy döt Net
2
+ Copyright (c) 2006-2016 Kirill Simonov
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8
+ of the Software, and to permit persons to whom the Software is furnished to do
9
+ so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/METADATA ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: PyYAML
3
+ Version: 6.0.1
4
+ Summary: YAML parser and emitter for Python
5
+ Home-page: https://pyyaml.org/
6
+ Download-URL: https://pypi.org/project/PyYAML/
7
+ Author: Kirill Simonov
8
+ Author-email: xi@resolvent.net
9
+ License: MIT
10
+ Project-URL: Bug Tracker, https://github.com/yaml/pyyaml/issues
11
+ Project-URL: CI, https://github.com/yaml/pyyaml/actions
12
+ Project-URL: Documentation, https://pyyaml.org/wiki/PyYAMLDocumentation
13
+ Project-URL: Mailing lists, http://lists.sourceforge.net/lists/listinfo/yaml-core
14
+ Project-URL: Source Code, https://github.com/yaml/pyyaml
15
+ Platform: Any
16
+ Classifier: Development Status :: 5 - Production/Stable
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: OSI Approved :: MIT License
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Cython
21
+ Classifier: Programming Language :: Python
22
+ Classifier: Programming Language :: Python :: 3
23
+ Classifier: Programming Language :: Python :: 3.6
24
+ Classifier: Programming Language :: Python :: 3.7
25
+ Classifier: Programming Language :: Python :: 3.8
26
+ Classifier: Programming Language :: Python :: 3.9
27
+ Classifier: Programming Language :: Python :: 3.10
28
+ Classifier: Programming Language :: Python :: 3.11
29
+ Classifier: Programming Language :: Python :: Implementation :: CPython
30
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
31
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
32
+ Classifier: Topic :: Text Processing :: Markup
33
+ Requires-Python: >=3.6
34
+ License-File: LICENSE
35
+
36
+ YAML is a data serialization format designed for human readability
37
+ and interaction with scripting languages. PyYAML is a YAML parser
38
+ and emitter for Python.
39
+
40
+ PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
41
+ support, capable extension API, and sensible error messages. PyYAML
42
+ supports standard YAML tags and provides Python-specific tags that
43
+ allow to represent an arbitrary Python object.
44
+
45
+ PyYAML is applicable for a broad range of tasks from complex
46
+ configuration files to object serialization and persistence.
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/RECORD ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PyYAML-6.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ PyYAML-6.0.1.dist-info/LICENSE,sha256=jTko-dxEkP1jVwfLiOsmvXZBAqcoKVQwfT5RZ6V36KQ,1101
3
+ PyYAML-6.0.1.dist-info/METADATA,sha256=UNNF8-SzzwOKXVo-kV5lXUGH2_wDWMBmGxqISpp5HQk,2058
4
+ PyYAML-6.0.1.dist-info/RECORD,,
5
+ PyYAML-6.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ PyYAML-6.0.1.dist-info/WHEEL,sha256=iZaXX0Td62Nww8bojl0E84uJHjT41csHPKZmbUBbJPs,152
7
+ PyYAML-6.0.1.dist-info/top_level.txt,sha256=rpj0IVMTisAjh_1vG3Ccf9v5jpCQwAz6cD1IVU5ZdhQ,11
8
+ _yaml/__init__.py,sha256=04Ae_5osxahpJHa3XBZUAf4wi6XX32gR8D6X6p64GEA,1402
9
+ _yaml/__pycache__/__init__.cpython-310.pyc,,
10
+ yaml/__init__.py,sha256=bhl05qSeO-1ZxlSRjGrvl2m9nrXb1n9-GQatTN0Mrqc,12311
11
+ yaml/__pycache__/__init__.cpython-310.pyc,,
12
+ yaml/__pycache__/composer.cpython-310.pyc,,
13
+ yaml/__pycache__/constructor.cpython-310.pyc,,
14
+ yaml/__pycache__/cyaml.cpython-310.pyc,,
15
+ yaml/__pycache__/dumper.cpython-310.pyc,,
16
+ yaml/__pycache__/emitter.cpython-310.pyc,,
17
+ yaml/__pycache__/error.cpython-310.pyc,,
18
+ yaml/__pycache__/events.cpython-310.pyc,,
19
+ yaml/__pycache__/loader.cpython-310.pyc,,
20
+ yaml/__pycache__/nodes.cpython-310.pyc,,
21
+ yaml/__pycache__/parser.cpython-310.pyc,,
22
+ yaml/__pycache__/reader.cpython-310.pyc,,
23
+ yaml/__pycache__/representer.cpython-310.pyc,,
24
+ yaml/__pycache__/resolver.cpython-310.pyc,,
25
+ yaml/__pycache__/scanner.cpython-310.pyc,,
26
+ yaml/__pycache__/serializer.cpython-310.pyc,,
27
+ yaml/__pycache__/tokens.cpython-310.pyc,,
28
+ yaml/_yaml.cpython-310-x86_64-linux-gnu.so,sha256=_9iVrASatQgQSFXlKeCe2uK2TyKwk9nd61Cs_-fqAHM,2226000
29
+ yaml/composer.py,sha256=_Ko30Wr6eDWUeUpauUGT3Lcg9QPBnOPVlTnIMRGJ9FM,4883
30
+ yaml/constructor.py,sha256=kNgkfaeLUkwQYY_Q6Ff1Tz2XVw_pG1xVE9Ak7z-viLA,28639
31
+ yaml/cyaml.py,sha256=6ZrAG9fAYvdVe2FK_w0hmXoG7ZYsoYUwapG8CiC72H0,3851
32
+ yaml/dumper.py,sha256=PLctZlYwZLp7XmeUdwRuv4nYOZ2UBnDIUy8-lKfLF-o,2837
33
+ yaml/emitter.py,sha256=jghtaU7eFwg31bG0B7RZea_29Adi9CKmXq_QjgQpCkQ,43006
34
+ yaml/error.py,sha256=Ah9z-toHJUbE9j-M8YpxgSRM5CgLCcwVzJgLLRF2Fxo,2533
35
+ yaml/events.py,sha256=50_TksgQiE4up-lKo_V-nBy-tAIxkIPQxY5qDhKCeHw,2445
36
+ yaml/loader.py,sha256=UVa-zIqmkFSCIYq_PgSGm4NSJttHY2Rf_zQ4_b1fHN0,2061
37
+ yaml/nodes.py,sha256=gPKNj8pKCdh2d4gr3gIYINnPOaOxGhJAUiYhGRnPE84,1440
38
+ yaml/parser.py,sha256=ilWp5vvgoHFGzvOZDItFoGjD6D42nhlZrZyjAwa0oJo,25495
39
+ yaml/reader.py,sha256=0dmzirOiDG4Xo41RnuQS7K9rkY3xjHiVasfDMNTqCNw,6794
40
+ yaml/representer.py,sha256=IuWP-cAW9sHKEnS0gCqSa894k1Bg4cgTxaDwIcbRQ-Y,14190
41
+ yaml/resolver.py,sha256=9L-VYfm4mWHxUD1Vg4X7rjDRK_7VZd6b92wzq7Y2IKY,9004
42
+ yaml/scanner.py,sha256=YEM3iLZSaQwXcQRg2l2R4MdT0zGP2F9eHkKGKnHyWQY,51279
43
+ yaml/serializer.py,sha256=ChuFgmhU01hj4xgI8GaKv6vfM2Bujwa9i7d2FAHj7cA,4165
44
+ yaml/tokens.py,sha256=lTQIzSVw8Mg9wv459-TjiOQe6wVziqaRlqX2_89rp54,2573
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/REQUESTED ADDED
File without changes
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/WHEEL ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.40.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-cp310-manylinux_2_17_x86_64
5
+ Tag: cp310-cp310-manylinux2014_x86_64
6
+
videochat2/lib/python3.10/site-packages/PyYAML-6.0.1.dist-info/top_level.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ _yaml
2
+ yaml
videochat2/lib/python3.10/site-packages/WebOb-1.8.9.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ webob
videochat2/lib/python3.10/site-packages/opencv_python.libs/libQt5Test-c38a5234.so.5.15.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba5de79c331697e46a7f7c2d808971bdcc83691f6de4c8f19584acb07dab6691
3
+ size 419025
videochat2/lib/python3.10/site-packages/opencv_python.libs/libXau-00ec42fe.so.6.0.0 ADDED
Binary file (17 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libavformat-0e2a2001.so.59.27.100 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed18f944b22fdfed427bd8e02118f24f38d187b8bb7c17a2ec81bb49e91dfb27
3
+ size 2567393
videochat2/lib/python3.10/site-packages/opencv_python.libs/libssl-4e89c2e4.so.1.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b952087aa6f72e0fe93ff24da9c229f3508605760d57c2cc41d2e90cf2a386f
3
+ size 736177
videochat2/lib/python3.10/site-packages/opencv_python.libs/libswresample-c26a2b7e.so.4.7.100 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b188bc69e33e13d5a8aea16968e871f37102982b3919fb56fdcf6091714e5f65
3
+ size 132417
videochat2/lib/python3.10/site-packages/opencv_python.libs/libvpx-2c989c7f.so.8.0.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0a813f5ab64a24d44edab1d27d76982cda31613181235c988c907e5d459188f
3
+ size 3495977
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-icccm-413c9f41.so.4.0.0 ADDED
Binary file (24.4 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-image-e82a276d.so.0.0.0 ADDED
Binary file (25.6 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-keysyms-21015570.so.1.0.0 ADDED
Binary file (13.2 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-randr-a96a5a87.so.0.1.0 ADDED
Binary file (93.9 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-render-637b984a.so.0.0.0 ADDED
Binary file (78.1 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-render-util-43ce00f5.so.0.0.0 ADDED
Binary file (22.2 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-shape-25c2b258.so.0.0.0 ADDED
Binary file (21.8 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-shm-7a199f70.so.0.0.0 ADDED
Binary file (21.4 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-sync-89374f40.so.1.0.0 ADDED
Binary file (35.7 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-util-4d666913.so.1.0.0 ADDED
Binary file (26.3 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xfixes-9be3ba6f.so.0.0.0 ADDED
Binary file (45.3 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xinerama-ae147f87.so.0.0.0 ADDED
Binary file (17.5 kB). View file
 
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxcb-xkb-9ba31ab3.so.1.0.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2da004caf83ef69cde058c3bfb6425e390ca54d468aba23e61af679b5653a39
3
+ size 157921
videochat2/lib/python3.10/site-packages/opencv_python.libs/libxkbcommon-x11-c65ed502.so.0.0.0 ADDED
Binary file (48.1 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/api/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (172 Bytes). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/api/__pycache__/test_api.cpython-310.pyc ADDED
Binary file (5.01 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/api/__pycache__/test_types.cpython-310.pyc ADDED
Binary file (1.88 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/api/test_api.py ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import pytest
4
+
5
+ import pandas as pd
6
+ from pandas import api
7
+ import pandas._testing as tm
8
+
9
+
10
+ class Base:
11
+ def check(self, namespace, expected, ignored=None):
12
+ # see which names are in the namespace, minus optional
13
+ # ignored ones
14
+ # compare vs the expected
15
+
16
+ result = sorted(
17
+ f for f in dir(namespace) if not f.startswith("__") and f != "annotations"
18
+ )
19
+ if ignored is not None:
20
+ result = sorted(set(result) - set(ignored))
21
+
22
+ expected = sorted(expected)
23
+ tm.assert_almost_equal(result, expected)
24
+
25
+
26
+ class TestPDApi(Base):
27
+ # these are optionally imported based on testing
28
+ # & need to be ignored
29
+ ignored = ["tests", "locale", "conftest"]
30
+
31
+ # top-level sub-packages
32
+ public_lib = [
33
+ "api",
34
+ "arrays",
35
+ "options",
36
+ "test",
37
+ "testing",
38
+ "errors",
39
+ "plotting",
40
+ "io",
41
+ "tseries",
42
+ ]
43
+ private_lib = ["compat", "core", "pandas", "util"]
44
+
45
+ # misc
46
+ misc = ["IndexSlice", "NaT", "NA"]
47
+
48
+ # top-level classes
49
+ classes = [
50
+ "ArrowDtype",
51
+ "Categorical",
52
+ "CategoricalIndex",
53
+ "DataFrame",
54
+ "DateOffset",
55
+ "DatetimeIndex",
56
+ "ExcelFile",
57
+ "ExcelWriter",
58
+ "Flags",
59
+ "Grouper",
60
+ "HDFStore",
61
+ "Index",
62
+ "MultiIndex",
63
+ "Period",
64
+ "PeriodIndex",
65
+ "RangeIndex",
66
+ "Series",
67
+ "SparseDtype",
68
+ "StringDtype",
69
+ "Timedelta",
70
+ "TimedeltaIndex",
71
+ "Timestamp",
72
+ "Interval",
73
+ "IntervalIndex",
74
+ "CategoricalDtype",
75
+ "PeriodDtype",
76
+ "IntervalDtype",
77
+ "DatetimeTZDtype",
78
+ "BooleanDtype",
79
+ "Int8Dtype",
80
+ "Int16Dtype",
81
+ "Int32Dtype",
82
+ "Int64Dtype",
83
+ "UInt8Dtype",
84
+ "UInt16Dtype",
85
+ "UInt32Dtype",
86
+ "UInt64Dtype",
87
+ "Float32Dtype",
88
+ "Float64Dtype",
89
+ "NamedAgg",
90
+ ]
91
+
92
+ # these are already deprecated; awaiting removal
93
+ deprecated_classes: list[str] = []
94
+
95
+ # external modules exposed in pandas namespace
96
+ modules: list[str] = []
97
+
98
+ # top-level functions
99
+ funcs = [
100
+ "array",
101
+ "bdate_range",
102
+ "concat",
103
+ "crosstab",
104
+ "cut",
105
+ "date_range",
106
+ "interval_range",
107
+ "eval",
108
+ "factorize",
109
+ "get_dummies",
110
+ "from_dummies",
111
+ "infer_freq",
112
+ "isna",
113
+ "isnull",
114
+ "lreshape",
115
+ "melt",
116
+ "notna",
117
+ "notnull",
118
+ "offsets",
119
+ "merge",
120
+ "merge_ordered",
121
+ "merge_asof",
122
+ "period_range",
123
+ "pivot",
124
+ "pivot_table",
125
+ "qcut",
126
+ "show_versions",
127
+ "timedelta_range",
128
+ "unique",
129
+ "value_counts",
130
+ "wide_to_long",
131
+ ]
132
+
133
+ # top-level option funcs
134
+ funcs_option = [
135
+ "reset_option",
136
+ "describe_option",
137
+ "get_option",
138
+ "option_context",
139
+ "set_option",
140
+ "set_eng_float_format",
141
+ ]
142
+
143
+ # top-level read_* funcs
144
+ funcs_read = [
145
+ "read_clipboard",
146
+ "read_csv",
147
+ "read_excel",
148
+ "read_fwf",
149
+ "read_gbq",
150
+ "read_hdf",
151
+ "read_html",
152
+ "read_xml",
153
+ "read_json",
154
+ "read_pickle",
155
+ "read_sas",
156
+ "read_sql",
157
+ "read_sql_query",
158
+ "read_sql_table",
159
+ "read_stata",
160
+ "read_table",
161
+ "read_feather",
162
+ "read_parquet",
163
+ "read_orc",
164
+ "read_spss",
165
+ ]
166
+
167
+ # top-level json funcs
168
+ funcs_json = ["json_normalize"]
169
+
170
+ # top-level to_* funcs
171
+ funcs_to = ["to_datetime", "to_numeric", "to_pickle", "to_timedelta"]
172
+
173
+ # top-level to deprecate in the future
174
+ deprecated_funcs_in_future: list[str] = []
175
+
176
+ # these are already deprecated; awaiting removal
177
+ deprecated_funcs: list[str] = []
178
+
179
+ # private modules in pandas namespace
180
+ private_modules = [
181
+ "_config",
182
+ "_libs",
183
+ "_is_numpy_dev",
184
+ "_testing",
185
+ "_typing",
186
+ "_version",
187
+ ]
188
+
189
+ def test_api(self):
190
+ checkthese = (
191
+ self.public_lib
192
+ + self.private_lib
193
+ + self.misc
194
+ + self.modules
195
+ + self.classes
196
+ + self.funcs
197
+ + self.funcs_option
198
+ + self.funcs_read
199
+ + self.funcs_json
200
+ + self.funcs_to
201
+ + self.private_modules
202
+ )
203
+ self.check(namespace=pd, expected=checkthese, ignored=self.ignored)
204
+
205
+ def test_api_all(self):
206
+ expected = set(
207
+ self.public_lib
208
+ + self.misc
209
+ + self.modules
210
+ + self.classes
211
+ + self.funcs
212
+ + self.funcs_option
213
+ + self.funcs_read
214
+ + self.funcs_json
215
+ + self.funcs_to
216
+ ) - set(self.deprecated_classes)
217
+ actual = set(pd.__all__)
218
+
219
+ extraneous = actual - expected
220
+ assert not extraneous
221
+
222
+ missing = expected - actual
223
+ assert not missing
224
+
225
+ def test_depr(self):
226
+ deprecated_list = (
227
+ self.deprecated_classes
228
+ + self.deprecated_funcs
229
+ + self.deprecated_funcs_in_future
230
+ )
231
+ for depr in deprecated_list:
232
+ with tm.assert_produces_warning(FutureWarning):
233
+ _ = getattr(pd, depr)
234
+
235
+
236
+ class TestApi(Base):
237
+ allowed = ["types", "extensions", "indexers", "interchange"]
238
+
239
+ def test_api(self):
240
+ self.check(api, self.allowed)
241
+
242
+
243
+ class TestTesting(Base):
244
+ funcs = [
245
+ "assert_frame_equal",
246
+ "assert_series_equal",
247
+ "assert_index_equal",
248
+ "assert_extension_array_equal",
249
+ ]
250
+
251
+ def test_testing(self):
252
+ from pandas import testing
253
+
254
+ self.check(testing, self.funcs)
255
+
256
+ def test_util_in_top_level(self):
257
+ with pytest.raises(AttributeError, match="foo"):
258
+ pd.util.foo
videochat2/lib/python3.10/site-packages/pandas/tests/base/__init__.py ADDED
File without changes
videochat2/lib/python3.10/site-packages/pandas/tests/base/test_constructors.py ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datetime import datetime
2
+ import sys
3
+
4
+ import numpy as np
5
+ import pytest
6
+
7
+ from pandas.compat import PYPY
8
+
9
+ import pandas as pd
10
+ from pandas import (
11
+ DataFrame,
12
+ Index,
13
+ Series,
14
+ )
15
+ import pandas._testing as tm
16
+ from pandas.core.accessor import PandasDelegate
17
+ from pandas.core.base import (
18
+ NoNewAttributesMixin,
19
+ PandasObject,
20
+ )
21
+
22
+
23
+ def series_via_frame_from_dict(x, **kwargs):
24
+ return DataFrame({"a": x}, **kwargs)["a"]
25
+
26
+
27
+ def series_via_frame_from_scalar(x, **kwargs):
28
+ return DataFrame(x, **kwargs)[0]
29
+
30
+
31
+ @pytest.fixture(
32
+ params=[
33
+ Series,
34
+ series_via_frame_from_dict,
35
+ series_via_frame_from_scalar,
36
+ Index,
37
+ ],
38
+ ids=["Series", "DataFrame-dict", "DataFrame-array", "Index"],
39
+ )
40
+ def constructor(request):
41
+ return request.param
42
+
43
+
44
+ class TestPandasDelegate:
45
+ class Delegator:
46
+ _properties = ["prop"]
47
+ _methods = ["test_method"]
48
+
49
+ def _set_prop(self, value):
50
+ self.prop = value
51
+
52
+ def _get_prop(self):
53
+ return self.prop
54
+
55
+ prop = property(_get_prop, _set_prop, doc="foo property")
56
+
57
+ def test_method(self, *args, **kwargs):
58
+ """a test method"""
59
+
60
+ class Delegate(PandasDelegate, PandasObject):
61
+ def __init__(self, obj) -> None:
62
+ self.obj = obj
63
+
64
+ def test_invalid_delegation(self):
65
+ # these show that in order for the delegation to work
66
+ # the _delegate_* methods need to be overridden to not raise
67
+ # a TypeError
68
+
69
+ self.Delegate._add_delegate_accessors(
70
+ delegate=self.Delegator,
71
+ accessors=self.Delegator._properties,
72
+ typ="property",
73
+ )
74
+ self.Delegate._add_delegate_accessors(
75
+ delegate=self.Delegator, accessors=self.Delegator._methods, typ="method"
76
+ )
77
+
78
+ delegate = self.Delegate(self.Delegator())
79
+
80
+ msg = "You cannot access the property prop"
81
+ with pytest.raises(TypeError, match=msg):
82
+ delegate.prop
83
+
84
+ msg = "The property prop cannot be set"
85
+ with pytest.raises(TypeError, match=msg):
86
+ delegate.prop = 5
87
+
88
+ msg = "You cannot access the property prop"
89
+ with pytest.raises(TypeError, match=msg):
90
+ delegate.prop
91
+
92
+ @pytest.mark.skipif(PYPY, reason="not relevant for PyPy")
93
+ def test_memory_usage(self):
94
+ # Delegate does not implement memory_usage.
95
+ # Check that we fall back to in-built `__sizeof__`
96
+ # GH 12924
97
+ delegate = self.Delegate(self.Delegator())
98
+ sys.getsizeof(delegate)
99
+
100
+
101
+ class TestNoNewAttributesMixin:
102
+ def test_mixin(self):
103
+ class T(NoNewAttributesMixin):
104
+ pass
105
+
106
+ t = T()
107
+ assert not hasattr(t, "__frozen")
108
+
109
+ t.a = "test"
110
+ assert t.a == "test"
111
+
112
+ t._freeze()
113
+ assert "__frozen" in dir(t)
114
+ assert getattr(t, "__frozen")
115
+ msg = "You cannot add any new attribute"
116
+ with pytest.raises(AttributeError, match=msg):
117
+ t.b = "test"
118
+
119
+ assert not hasattr(t, "b")
120
+
121
+
122
+ class TestConstruction:
123
+ # test certain constructor behaviours on dtype inference across Series,
124
+ # Index and DataFrame
125
+
126
+ @pytest.mark.parametrize(
127
+ "a",
128
+ [
129
+ np.array(["2263-01-01"], dtype="datetime64[D]"),
130
+ np.array([datetime(2263, 1, 1)], dtype=object),
131
+ np.array([np.datetime64("2263-01-01", "D")], dtype=object),
132
+ np.array(["2263-01-01"], dtype=object),
133
+ ],
134
+ ids=[
135
+ "datetime64[D]",
136
+ "object-datetime.datetime",
137
+ "object-numpy-scalar",
138
+ "object-string",
139
+ ],
140
+ )
141
+ def test_constructor_datetime_outofbound(self, a, constructor):
142
+ # GH-26853 (+ bug GH-26206 out of bound non-ns unit)
143
+
144
+ # No dtype specified (dtype inference)
145
+ # datetime64[non-ns] raise error, other cases result in object dtype
146
+ # and preserve original data
147
+ if a.dtype.kind == "M":
148
+ # Can't fit in nanosecond bounds -> get the nearest supported unit
149
+ result = constructor(a)
150
+ assert result.dtype == "M8[s]"
151
+ else:
152
+ result = constructor(a)
153
+ assert result.dtype == "object"
154
+ tm.assert_numpy_array_equal(result.to_numpy(), a)
155
+
156
+ # Explicit dtype specified
157
+ # Forced conversion fails for all -> all cases raise error
158
+ msg = "Out of bounds|Out of bounds .* present at position 0"
159
+ with pytest.raises(pd.errors.OutOfBoundsDatetime, match=msg):
160
+ constructor(a, dtype="datetime64[ns]")
161
+
162
+ def test_constructor_datetime_nonns(self, constructor):
163
+ arr = np.array(["2020-01-01T00:00:00.000000"], dtype="datetime64[us]")
164
+ dta = pd.core.arrays.DatetimeArray._simple_new(arr, dtype=arr.dtype)
165
+ expected = constructor(dta)
166
+ assert expected.dtype == arr.dtype
167
+
168
+ result = constructor(arr)
169
+ tm.assert_equal(result, expected)
170
+
171
+ # https://github.com/pandas-dev/pandas/issues/34843
172
+ arr.flags.writeable = False
173
+ result = constructor(arr)
174
+ tm.assert_equal(result, expected)
videochat2/lib/python3.10/site-packages/pandas/tests/base/test_conversion.py ADDED
@@ -0,0 +1,551 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import pytest
3
+
4
+ from pandas.core.dtypes.common import (
5
+ is_datetime64_dtype,
6
+ is_timedelta64_dtype,
7
+ )
8
+ from pandas.core.dtypes.dtypes import DatetimeTZDtype
9
+
10
+ import pandas as pd
11
+ from pandas import (
12
+ CategoricalIndex,
13
+ Series,
14
+ Timedelta,
15
+ Timestamp,
16
+ date_range,
17
+ )
18
+ import pandas._testing as tm
19
+ from pandas.core.arrays import (
20
+ DatetimeArray,
21
+ IntervalArray,
22
+ PandasArray,
23
+ PeriodArray,
24
+ SparseArray,
25
+ TimedeltaArray,
26
+ )
27
+
28
+
29
+ class TestToIterable:
30
+ # test that we convert an iterable to python types
31
+
32
+ dtypes = [
33
+ ("int8", int),
34
+ ("int16", int),
35
+ ("int32", int),
36
+ ("int64", int),
37
+ ("uint8", int),
38
+ ("uint16", int),
39
+ ("uint32", int),
40
+ ("uint64", int),
41
+ ("float16", float),
42
+ ("float32", float),
43
+ ("float64", float),
44
+ ("datetime64[ns]", Timestamp),
45
+ ("datetime64[ns, US/Eastern]", Timestamp),
46
+ ("timedelta64[ns]", Timedelta),
47
+ ]
48
+
49
+ @pytest.mark.parametrize("dtype, rdtype", dtypes)
50
+ @pytest.mark.parametrize(
51
+ "method",
52
+ [
53
+ lambda x: x.tolist(),
54
+ lambda x: x.to_list(),
55
+ lambda x: list(x),
56
+ lambda x: list(x.__iter__()),
57
+ ],
58
+ ids=["tolist", "to_list", "list", "iter"],
59
+ )
60
+ def test_iterable(self, index_or_series, method, dtype, rdtype):
61
+ # gh-10904
62
+ # gh-13258
63
+ # coerce iteration to underlying python / pandas types
64
+ typ = index_or_series
65
+ if dtype == "float16" and issubclass(typ, pd.Index):
66
+ with pytest.raises(NotImplementedError, match="float16 indexes are not "):
67
+ typ([1], dtype=dtype)
68
+ return
69
+ s = typ([1], dtype=dtype)
70
+ result = method(s)[0]
71
+ assert isinstance(result, rdtype)
72
+
73
+ @pytest.mark.parametrize(
74
+ "dtype, rdtype, obj",
75
+ [
76
+ ("object", object, "a"),
77
+ ("object", int, 1),
78
+ ("category", object, "a"),
79
+ ("category", int, 1),
80
+ ],
81
+ )
82
+ @pytest.mark.parametrize(
83
+ "method",
84
+ [
85
+ lambda x: x.tolist(),
86
+ lambda x: x.to_list(),
87
+ lambda x: list(x),
88
+ lambda x: list(x.__iter__()),
89
+ ],
90
+ ids=["tolist", "to_list", "list", "iter"],
91
+ )
92
+ def test_iterable_object_and_category(
93
+ self, index_or_series, method, dtype, rdtype, obj
94
+ ):
95
+ # gh-10904
96
+ # gh-13258
97
+ # coerce iteration to underlying python / pandas types
98
+ typ = index_or_series
99
+ s = typ([obj], dtype=dtype)
100
+ result = method(s)[0]
101
+ assert isinstance(result, rdtype)
102
+
103
+ @pytest.mark.parametrize("dtype, rdtype", dtypes)
104
+ def test_iterable_items(self, dtype, rdtype):
105
+ # gh-13258
106
+ # test if items yields the correct boxed scalars
107
+ # this only applies to series
108
+ s = Series([1], dtype=dtype)
109
+ _, result = list(s.items())[0]
110
+ assert isinstance(result, rdtype)
111
+
112
+ _, result = list(s.items())[0]
113
+ assert isinstance(result, rdtype)
114
+
115
+ @pytest.mark.parametrize(
116
+ "dtype, rdtype", dtypes + [("object", int), ("category", int)]
117
+ )
118
+ def test_iterable_map(self, index_or_series, dtype, rdtype):
119
+ # gh-13236
120
+ # coerce iteration to underlying python / pandas types
121
+ typ = index_or_series
122
+ if dtype == "float16" and issubclass(typ, pd.Index):
123
+ with pytest.raises(NotImplementedError, match="float16 indexes are not "):
124
+ typ([1], dtype=dtype)
125
+ return
126
+ s = typ([1], dtype=dtype)
127
+ result = s.map(type)[0]
128
+ if not isinstance(rdtype, tuple):
129
+ rdtype = (rdtype,)
130
+ assert result in rdtype
131
+
132
+ @pytest.mark.parametrize(
133
+ "method",
134
+ [
135
+ lambda x: x.tolist(),
136
+ lambda x: x.to_list(),
137
+ lambda x: list(x),
138
+ lambda x: list(x.__iter__()),
139
+ ],
140
+ ids=["tolist", "to_list", "list", "iter"],
141
+ )
142
+ def test_categorial_datetimelike(self, method):
143
+ i = CategoricalIndex([Timestamp("1999-12-31"), Timestamp("2000-12-31")])
144
+
145
+ result = method(i)[0]
146
+ assert isinstance(result, Timestamp)
147
+
148
+ def test_iter_box(self):
149
+ vals = [Timestamp("2011-01-01"), Timestamp("2011-01-02")]
150
+ s = Series(vals)
151
+ assert s.dtype == "datetime64[ns]"
152
+ for res, exp in zip(s, vals):
153
+ assert isinstance(res, Timestamp)
154
+ assert res.tz is None
155
+ assert res == exp
156
+
157
+ vals = [
158
+ Timestamp("2011-01-01", tz="US/Eastern"),
159
+ Timestamp("2011-01-02", tz="US/Eastern"),
160
+ ]
161
+ s = Series(vals)
162
+
163
+ assert s.dtype == "datetime64[ns, US/Eastern]"
164
+ for res, exp in zip(s, vals):
165
+ assert isinstance(res, Timestamp)
166
+ assert res.tz == exp.tz
167
+ assert res == exp
168
+
169
+ # timedelta
170
+ vals = [Timedelta("1 days"), Timedelta("2 days")]
171
+ s = Series(vals)
172
+ assert s.dtype == "timedelta64[ns]"
173
+ for res, exp in zip(s, vals):
174
+ assert isinstance(res, Timedelta)
175
+ assert res == exp
176
+
177
+ # period
178
+ vals = [pd.Period("2011-01-01", freq="M"), pd.Period("2011-01-02", freq="M")]
179
+ s = Series(vals)
180
+ assert s.dtype == "Period[M]"
181
+ for res, exp in zip(s, vals):
182
+ assert isinstance(res, pd.Period)
183
+ assert res.freq == "M"
184
+ assert res == exp
185
+
186
+
187
+ @pytest.mark.parametrize(
188
+ "arr, expected_type, dtype",
189
+ [
190
+ (np.array([0, 1], dtype=np.int64), np.ndarray, "int64"),
191
+ (np.array(["a", "b"]), np.ndarray, "object"),
192
+ (pd.Categorical(["a", "b"]), pd.Categorical, "category"),
193
+ (
194
+ pd.DatetimeIndex(["2017", "2018"], tz="US/Central"),
195
+ DatetimeArray,
196
+ "datetime64[ns, US/Central]",
197
+ ),
198
+ (
199
+ pd.PeriodIndex([2018, 2019], freq="A"),
200
+ PeriodArray,
201
+ pd.core.dtypes.dtypes.PeriodDtype("A-DEC"),
202
+ ),
203
+ (pd.IntervalIndex.from_breaks([0, 1, 2]), IntervalArray, "interval"),
204
+ (
205
+ pd.DatetimeIndex(["2017", "2018"]),
206
+ DatetimeArray,
207
+ "datetime64[ns]",
208
+ ),
209
+ (
210
+ pd.TimedeltaIndex([10**10]),
211
+ TimedeltaArray,
212
+ "m8[ns]",
213
+ ),
214
+ ],
215
+ )
216
+ def test_values_consistent(arr, expected_type, dtype):
217
+ l_values = Series(arr)._values
218
+ r_values = pd.Index(arr)._values
219
+ assert type(l_values) is expected_type
220
+ assert type(l_values) is type(r_values)
221
+
222
+ tm.assert_equal(l_values, r_values)
223
+
224
+
225
+ @pytest.mark.parametrize("arr", [np.array([1, 2, 3])])
226
+ def test_numpy_array(arr):
227
+ ser = Series(arr)
228
+ result = ser.array
229
+ expected = PandasArray(arr)
230
+ tm.assert_extension_array_equal(result, expected)
231
+
232
+
233
+ def test_numpy_array_all_dtypes(any_numpy_dtype):
234
+ ser = Series(dtype=any_numpy_dtype)
235
+ result = ser.array
236
+ if is_datetime64_dtype(any_numpy_dtype):
237
+ assert isinstance(result, DatetimeArray)
238
+ elif is_timedelta64_dtype(any_numpy_dtype):
239
+ assert isinstance(result, TimedeltaArray)
240
+ else:
241
+ assert isinstance(result, PandasArray)
242
+
243
+
244
+ @pytest.mark.parametrize(
245
+ "arr, attr",
246
+ [
247
+ (pd.Categorical(["a", "b"]), "_codes"),
248
+ (pd.core.arrays.period_array(["2000", "2001"], freq="D"), "_ndarray"),
249
+ (pd.array([0, np.nan], dtype="Int64"), "_data"),
250
+ (IntervalArray.from_breaks([0, 1]), "_left"),
251
+ (SparseArray([0, 1]), "_sparse_values"),
252
+ (DatetimeArray(np.array([1, 2], dtype="datetime64[ns]")), "_ndarray"),
253
+ # tz-aware Datetime
254
+ (
255
+ DatetimeArray(
256
+ np.array(
257
+ ["2000-01-01T12:00:00", "2000-01-02T12:00:00"], dtype="M8[ns]"
258
+ ),
259
+ dtype=DatetimeTZDtype(tz="US/Central"),
260
+ ),
261
+ "_ndarray",
262
+ ),
263
+ ],
264
+ )
265
+ def test_array(arr, attr, index_or_series, request):
266
+ box = index_or_series
267
+
268
+ result = box(arr, copy=False).array
269
+
270
+ if attr:
271
+ arr = getattr(arr, attr)
272
+ result = getattr(result, attr)
273
+
274
+ assert result is arr
275
+
276
+
277
+ def test_array_multiindex_raises():
278
+ idx = pd.MultiIndex.from_product([["A"], ["a", "b"]])
279
+ msg = "MultiIndex has no single backing array"
280
+ with pytest.raises(ValueError, match=msg):
281
+ idx.array
282
+
283
+
284
+ @pytest.mark.parametrize(
285
+ "arr, expected",
286
+ [
287
+ (np.array([1, 2], dtype=np.int64), np.array([1, 2], dtype=np.int64)),
288
+ (pd.Categorical(["a", "b"]), np.array(["a", "b"], dtype=object)),
289
+ (
290
+ pd.core.arrays.period_array(["2000", "2001"], freq="D"),
291
+ np.array([pd.Period("2000", freq="D"), pd.Period("2001", freq="D")]),
292
+ ),
293
+ (pd.array([0, np.nan], dtype="Int64"), np.array([0, pd.NA], dtype=object)),
294
+ (
295
+ IntervalArray.from_breaks([0, 1, 2]),
296
+ np.array([pd.Interval(0, 1), pd.Interval(1, 2)], dtype=object),
297
+ ),
298
+ (SparseArray([0, 1]), np.array([0, 1], dtype=np.int64)),
299
+ # tz-naive datetime
300
+ (
301
+ DatetimeArray(np.array(["2000", "2001"], dtype="M8[ns]")),
302
+ np.array(["2000", "2001"], dtype="M8[ns]"),
303
+ ),
304
+ # tz-aware stays tz`-aware
305
+ (
306
+ DatetimeArray(
307
+ np.array(
308
+ ["2000-01-01T06:00:00", "2000-01-02T06:00:00"], dtype="M8[ns]"
309
+ ),
310
+ dtype=DatetimeTZDtype(tz="US/Central"),
311
+ ),
312
+ np.array(
313
+ [
314
+ Timestamp("2000-01-01", tz="US/Central"),
315
+ Timestamp("2000-01-02", tz="US/Central"),
316
+ ]
317
+ ),
318
+ ),
319
+ # Timedelta
320
+ (
321
+ TimedeltaArray(np.array([0, 3600000000000], dtype="i8"), freq="H"),
322
+ np.array([0, 3600000000000], dtype="m8[ns]"),
323
+ ),
324
+ # GH#26406 tz is preserved in Categorical[dt64tz]
325
+ (
326
+ pd.Categorical(date_range("2016-01-01", periods=2, tz="US/Pacific")),
327
+ np.array(
328
+ [
329
+ Timestamp("2016-01-01", tz="US/Pacific"),
330
+ Timestamp("2016-01-02", tz="US/Pacific"),
331
+ ]
332
+ ),
333
+ ),
334
+ ],
335
+ )
336
+ def test_to_numpy(arr, expected, index_or_series_or_array, request):
337
+ box = index_or_series_or_array
338
+
339
+ with tm.assert_produces_warning(None):
340
+ thing = box(arr)
341
+
342
+ if arr.dtype.name == "int64" and box is pd.array:
343
+ mark = pytest.mark.xfail(reason="thing is Int64 and to_numpy() returns object")
344
+ request.node.add_marker(mark)
345
+
346
+ result = thing.to_numpy()
347
+ tm.assert_numpy_array_equal(result, expected)
348
+
349
+ result = np.asarray(thing)
350
+ tm.assert_numpy_array_equal(result, expected)
351
+
352
+
353
+ @pytest.mark.parametrize("as_series", [True, False])
354
+ @pytest.mark.parametrize(
355
+ "arr", [np.array([1, 2, 3], dtype="int64"), np.array(["a", "b", "c"], dtype=object)]
356
+ )
357
+ def test_to_numpy_copy(arr, as_series):
358
+ obj = pd.Index(arr, copy=False)
359
+ if as_series:
360
+ obj = Series(obj.values, copy=False)
361
+
362
+ # no copy by default
363
+ result = obj.to_numpy()
364
+ assert np.shares_memory(arr, result) is True
365
+
366
+ result = obj.to_numpy(copy=False)
367
+ assert np.shares_memory(arr, result) is True
368
+
369
+ # copy=True
370
+ result = obj.to_numpy(copy=True)
371
+ assert np.shares_memory(arr, result) is False
372
+
373
+
374
+ @pytest.mark.parametrize("as_series", [True, False])
375
+ def test_to_numpy_dtype(as_series):
376
+ tz = "US/Eastern"
377
+ obj = pd.DatetimeIndex(["2000", "2001"], tz=tz)
378
+ if as_series:
379
+ obj = Series(obj)
380
+
381
+ # preserve tz by default
382
+ result = obj.to_numpy()
383
+ expected = np.array(
384
+ [Timestamp("2000", tz=tz), Timestamp("2001", tz=tz)], dtype=object
385
+ )
386
+ tm.assert_numpy_array_equal(result, expected)
387
+
388
+ result = obj.to_numpy(dtype="object")
389
+ tm.assert_numpy_array_equal(result, expected)
390
+
391
+ result = obj.to_numpy(dtype="M8[ns]")
392
+ expected = np.array(["2000-01-01T05", "2001-01-01T05"], dtype="M8[ns]")
393
+ tm.assert_numpy_array_equal(result, expected)
394
+
395
+
396
+ @pytest.mark.parametrize(
397
+ "values, dtype, na_value, expected",
398
+ [
399
+ ([1, 2, None], "float64", 0, [1.0, 2.0, 0.0]),
400
+ (
401
+ [Timestamp("2000"), Timestamp("2000"), pd.NaT],
402
+ None,
403
+ Timestamp("2000"),
404
+ [np.datetime64("2000-01-01T00:00:00.000000000")] * 3,
405
+ ),
406
+ ],
407
+ )
408
+ def test_to_numpy_na_value_numpy_dtype(
409
+ index_or_series, values, dtype, na_value, expected
410
+ ):
411
+ obj = index_or_series(values)
412
+ result = obj.to_numpy(dtype=dtype, na_value=na_value)
413
+ expected = np.array(expected)
414
+ tm.assert_numpy_array_equal(result, expected)
415
+
416
+
417
+ @pytest.mark.parametrize(
418
+ "data, multiindex, dtype, na_value, expected",
419
+ [
420
+ (
421
+ [1, 2, None, 4],
422
+ [(0, "a"), (0, "b"), (1, "b"), (1, "c")],
423
+ float,
424
+ None,
425
+ [1.0, 2.0, np.nan, 4.0],
426
+ ),
427
+ (
428
+ [1, 2, None, 4],
429
+ [(0, "a"), (0, "b"), (1, "b"), (1, "c")],
430
+ float,
431
+ np.nan,
432
+ [1.0, 2.0, np.nan, 4.0],
433
+ ),
434
+ (
435
+ [1.0, 2.0, np.nan, 4.0],
436
+ [("a", 0), ("a", 1), ("a", 2), ("b", 0)],
437
+ int,
438
+ 0,
439
+ [1, 2, 0, 4],
440
+ ),
441
+ (
442
+ [Timestamp("2000"), Timestamp("2000"), pd.NaT],
443
+ [(0, Timestamp("2021")), (0, Timestamp("2022")), (1, Timestamp("2000"))],
444
+ None,
445
+ Timestamp("2000"),
446
+ [np.datetime64("2000-01-01T00:00:00.000000000")] * 3,
447
+ ),
448
+ ],
449
+ )
450
+ def test_to_numpy_multiindex_series_na_value(
451
+ data, multiindex, dtype, na_value, expected
452
+ ):
453
+ index = pd.MultiIndex.from_tuples(multiindex)
454
+ series = Series(data, index=index)
455
+ result = series.to_numpy(dtype=dtype, na_value=na_value)
456
+ expected = np.array(expected)
457
+ tm.assert_numpy_array_equal(result, expected)
458
+
459
+
460
+ def test_to_numpy_kwargs_raises():
461
+ # numpy
462
+ s = Series([1, 2, 3])
463
+ msg = r"to_numpy\(\) got an unexpected keyword argument 'foo'"
464
+ with pytest.raises(TypeError, match=msg):
465
+ s.to_numpy(foo=True)
466
+
467
+ # extension
468
+ s = Series([1, 2, 3], dtype="Int64")
469
+ with pytest.raises(TypeError, match=msg):
470
+ s.to_numpy(foo=True)
471
+
472
+
473
+ @pytest.mark.parametrize(
474
+ "data",
475
+ [
476
+ {"a": [1, 2, 3], "b": [1, 2, None]},
477
+ {"a": np.array([1, 2, 3]), "b": np.array([1, 2, np.nan])},
478
+ {"a": pd.array([1, 2, 3]), "b": pd.array([1, 2, None])},
479
+ ],
480
+ )
481
+ @pytest.mark.parametrize("dtype, na_value", [(float, np.nan), (object, None)])
482
+ def test_to_numpy_dataframe_na_value(data, dtype, na_value):
483
+ # https://github.com/pandas-dev/pandas/issues/33820
484
+ df = pd.DataFrame(data)
485
+ result = df.to_numpy(dtype=dtype, na_value=na_value)
486
+ expected = np.array([[1, 1], [2, 2], [3, na_value]], dtype=dtype)
487
+ tm.assert_numpy_array_equal(result, expected)
488
+
489
+
490
+ @pytest.mark.parametrize(
491
+ "data, expected",
492
+ [
493
+ (
494
+ {"a": pd.array([1, 2, None])},
495
+ np.array([[1.0], [2.0], [np.nan]], dtype=float),
496
+ ),
497
+ (
498
+ {"a": [1, 2, 3], "b": [1, 2, 3]},
499
+ np.array([[1, 1], [2, 2], [3, 3]], dtype=float),
500
+ ),
501
+ ],
502
+ )
503
+ def test_to_numpy_dataframe_single_block(data, expected):
504
+ # https://github.com/pandas-dev/pandas/issues/33820
505
+ df = pd.DataFrame(data)
506
+ result = df.to_numpy(dtype=float, na_value=np.nan)
507
+ tm.assert_numpy_array_equal(result, expected)
508
+
509
+
510
+ def test_to_numpy_dataframe_single_block_no_mutate():
511
+ # https://github.com/pandas-dev/pandas/issues/33820
512
+ result = pd.DataFrame(np.array([1.0, 2.0, np.nan]))
513
+ expected = pd.DataFrame(np.array([1.0, 2.0, np.nan]))
514
+ result.to_numpy(na_value=0.0)
515
+ tm.assert_frame_equal(result, expected)
516
+
517
+
518
+ class TestAsArray:
519
+ @pytest.mark.parametrize("tz", [None, "US/Central"])
520
+ def test_asarray_object_dt64(self, tz):
521
+ ser = Series(date_range("2000", periods=2, tz=tz))
522
+
523
+ with tm.assert_produces_warning(None):
524
+ # Future behavior (for tzaware case) with no warning
525
+ result = np.asarray(ser, dtype=object)
526
+
527
+ expected = np.array(
528
+ [Timestamp("2000-01-01", tz=tz), Timestamp("2000-01-02", tz=tz)]
529
+ )
530
+ tm.assert_numpy_array_equal(result, expected)
531
+
532
+ def test_asarray_tz_naive(self):
533
+ # This shouldn't produce a warning.
534
+ ser = Series(date_range("2000", periods=2))
535
+ expected = np.array(["2000-01-01", "2000-01-02"], dtype="M8[ns]")
536
+ result = np.asarray(ser)
537
+
538
+ tm.assert_numpy_array_equal(result, expected)
539
+
540
+ def test_asarray_tz_aware(self):
541
+ tz = "US/Central"
542
+ ser = Series(date_range("2000", periods=2, tz=tz))
543
+ expected = np.array(["2000-01-01T06", "2000-01-02T06"], dtype="M8[ns]")
544
+ result = np.asarray(ser, dtype="datetime64[ns]")
545
+
546
+ tm.assert_numpy_array_equal(result, expected)
547
+
548
+ # Old behavior with no warning
549
+ result = np.asarray(ser, dtype="M8[ns]")
550
+
551
+ tm.assert_numpy_array_equal(result, expected)
videochat2/lib/python3.10/site-packages/pandas/tests/base/test_transpose.py ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import pytest
3
+
4
+ from pandas import (
5
+ CategoricalDtype,
6
+ DataFrame,
7
+ )
8
+ import pandas._testing as tm
9
+
10
+
11
+ def test_transpose(index_or_series_obj):
12
+ obj = index_or_series_obj
13
+ tm.assert_equal(obj.transpose(), obj)
14
+
15
+
16
+ def test_transpose_non_default_axes(index_or_series_obj):
17
+ msg = "the 'axes' parameter is not supported"
18
+ obj = index_or_series_obj
19
+ with pytest.raises(ValueError, match=msg):
20
+ obj.transpose(1)
21
+ with pytest.raises(ValueError, match=msg):
22
+ obj.transpose(axes=1)
23
+
24
+
25
+ def test_numpy_transpose(index_or_series_obj):
26
+ msg = "the 'axes' parameter is not supported"
27
+ obj = index_or_series_obj
28
+ tm.assert_equal(np.transpose(obj), obj)
29
+
30
+ with pytest.raises(ValueError, match=msg):
31
+ np.transpose(obj, axes=1)
32
+
33
+
34
+ @pytest.mark.parametrize(
35
+ "data, transposed_data, index, columns, dtype",
36
+ [
37
+ ([[1], [2]], [[1, 2]], ["a", "a"], ["b"], int),
38
+ ([[1], [2]], [[1, 2]], ["a", "a"], ["b"], CategoricalDtype([1, 2])),
39
+ ([[1, 2]], [[1], [2]], ["b"], ["a", "a"], int),
40
+ ([[1, 2]], [[1], [2]], ["b"], ["a", "a"], CategoricalDtype([1, 2])),
41
+ ([[1, 2], [3, 4]], [[1, 3], [2, 4]], ["a", "a"], ["b", "b"], int),
42
+ (
43
+ [[1, 2], [3, 4]],
44
+ [[1, 3], [2, 4]],
45
+ ["a", "a"],
46
+ ["b", "b"],
47
+ CategoricalDtype([1, 2, 3, 4]),
48
+ ),
49
+ ],
50
+ )
51
+ def test_duplicate_labels(data, transposed_data, index, columns, dtype):
52
+ # GH 42380
53
+ df = DataFrame(data, index=index, columns=columns, dtype=dtype)
54
+ result = df.T
55
+ expected = DataFrame(transposed_data, index=columns, columns=index, dtype=dtype)
56
+ tm.assert_frame_equal(result, expected)
videochat2/lib/python3.10/site-packages/pandas/tests/base/test_unique.py ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import pytest
3
+
4
+ from pandas.core.dtypes.common import is_datetime64tz_dtype
5
+
6
+ import pandas as pd
7
+ import pandas._testing as tm
8
+ from pandas.tests.base.common import allow_na_ops
9
+
10
+
11
+ def test_unique(index_or_series_obj):
12
+ obj = index_or_series_obj
13
+ obj = np.repeat(obj, range(1, len(obj) + 1))
14
+ result = obj.unique()
15
+
16
+ # dict.fromkeys preserves the order
17
+ unique_values = list(dict.fromkeys(obj.values))
18
+ if isinstance(obj, pd.MultiIndex):
19
+ expected = pd.MultiIndex.from_tuples(unique_values)
20
+ expected.names = obj.names
21
+ tm.assert_index_equal(result, expected, exact=True)
22
+ elif isinstance(obj, pd.Index):
23
+ expected = pd.Index(unique_values, dtype=obj.dtype)
24
+ if is_datetime64tz_dtype(obj.dtype):
25
+ expected = expected.normalize()
26
+ tm.assert_index_equal(result, expected, exact=True)
27
+ else:
28
+ expected = np.array(unique_values)
29
+ tm.assert_numpy_array_equal(result, expected)
30
+
31
+
32
+ @pytest.mark.parametrize("null_obj", [np.nan, None])
33
+ def test_unique_null(null_obj, index_or_series_obj):
34
+ obj = index_or_series_obj
35
+
36
+ if not allow_na_ops(obj):
37
+ pytest.skip("type doesn't allow for NA operations")
38
+ elif len(obj) < 1:
39
+ pytest.skip("Test doesn't make sense on empty data")
40
+ elif isinstance(obj, pd.MultiIndex):
41
+ pytest.skip(f"MultiIndex can't hold '{null_obj}'")
42
+
43
+ values = obj._values
44
+ values[0:2] = null_obj
45
+
46
+ klass = type(obj)
47
+ repeated_values = np.repeat(values, range(1, len(values) + 1))
48
+ obj = klass(repeated_values, dtype=obj.dtype)
49
+ result = obj.unique()
50
+
51
+ unique_values_raw = dict.fromkeys(obj.values)
52
+ # because np.nan == np.nan is False, but None == None is True
53
+ # np.nan would be duplicated, whereas None wouldn't
54
+ unique_values_not_null = [val for val in unique_values_raw if not pd.isnull(val)]
55
+ unique_values = [null_obj] + unique_values_not_null
56
+
57
+ if isinstance(obj, pd.Index):
58
+ expected = pd.Index(unique_values, dtype=obj.dtype)
59
+ if is_datetime64tz_dtype(obj.dtype):
60
+ result = result.normalize()
61
+ expected = expected.normalize()
62
+ tm.assert_index_equal(result, expected, exact=True)
63
+ else:
64
+ expected = np.array(unique_values, dtype=obj.dtype)
65
+ tm.assert_numpy_array_equal(result, expected)
66
+
67
+
68
+ def test_nunique(index_or_series_obj):
69
+ obj = index_or_series_obj
70
+ obj = np.repeat(obj, range(1, len(obj) + 1))
71
+ expected = len(obj.unique())
72
+ assert obj.nunique(dropna=False) == expected
73
+
74
+
75
+ @pytest.mark.parametrize("null_obj", [np.nan, None])
76
+ def test_nunique_null(null_obj, index_or_series_obj):
77
+ obj = index_or_series_obj
78
+
79
+ if not allow_na_ops(obj):
80
+ pytest.skip("type doesn't allow for NA operations")
81
+ elif isinstance(obj, pd.MultiIndex):
82
+ pytest.skip(f"MultiIndex can't hold '{null_obj}'")
83
+
84
+ values = obj._values
85
+ values[0:2] = null_obj
86
+
87
+ klass = type(obj)
88
+ repeated_values = np.repeat(values, range(1, len(values) + 1))
89
+ obj = klass(repeated_values, dtype=obj.dtype)
90
+
91
+ if isinstance(obj, pd.CategoricalIndex):
92
+ assert obj.nunique() == len(obj.categories)
93
+ assert obj.nunique(dropna=False) == len(obj.categories) + 1
94
+ else:
95
+ num_unique_values = len(obj.unique())
96
+ assert obj.nunique() == max(0, num_unique_values - 1)
97
+ assert obj.nunique(dropna=False) == max(0, num_unique_values)
98
+
99
+
100
+ @pytest.mark.single_cpu
101
+ def test_unique_bad_unicode(index_or_series):
102
+ # regression test for #34550
103
+ uval = "\ud83d" # smiley emoji
104
+
105
+ obj = index_or_series([uval] * 2)
106
+ result = obj.unique()
107
+
108
+ if isinstance(obj, pd.Index):
109
+ expected = pd.Index(["\ud83d"], dtype=object)
110
+ tm.assert_index_equal(result, expected, exact=True)
111
+ else:
112
+ expected = np.array(["\ud83d"], dtype=object)
113
+ tm.assert_numpy_array_equal(result, expected)
114
+
115
+
116
+ @pytest.mark.parametrize("dropna", [True, False])
117
+ def test_nunique_dropna(dropna):
118
+ # GH37566
119
+ ser = pd.Series(["yes", "yes", pd.NA, np.nan, None, pd.NaT])
120
+ res = ser.nunique(dropna)
121
+ assert res == 1 if dropna else 5
videochat2/lib/python3.10/site-packages/pandas/tests/base/test_value_counts.py ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import collections
2
+ from datetime import timedelta
3
+
4
+ import numpy as np
5
+ import pytest
6
+
7
+ import pandas as pd
8
+ from pandas import (
9
+ DatetimeIndex,
10
+ Index,
11
+ Interval,
12
+ IntervalIndex,
13
+ MultiIndex,
14
+ Series,
15
+ Timedelta,
16
+ TimedeltaIndex,
17
+ )
18
+ import pandas._testing as tm
19
+ from pandas.tests.base.common import allow_na_ops
20
+
21
+
22
+ def test_value_counts(index_or_series_obj):
23
+ obj = index_or_series_obj
24
+ obj = np.repeat(obj, range(1, len(obj) + 1))
25
+ result = obj.value_counts()
26
+
27
+ counter = collections.Counter(obj)
28
+ expected = Series(dict(counter.most_common()), dtype=np.int64, name="count")
29
+
30
+ if obj.dtype != np.float16:
31
+ expected.index = expected.index.astype(obj.dtype)
32
+ else:
33
+ with pytest.raises(NotImplementedError, match="float16 indexes are not "):
34
+ expected.index.astype(obj.dtype)
35
+ return
36
+ if isinstance(expected.index, MultiIndex):
37
+ expected.index.names = obj.names
38
+ else:
39
+ expected.index.name = obj.name
40
+
41
+ if not isinstance(result.dtype, np.dtype):
42
+ if getattr(obj.dtype, "storage", "") == "pyarrow":
43
+ expected = expected.astype("int64[pyarrow]")
44
+ else:
45
+ # i.e IntegerDtype
46
+ expected = expected.astype("Int64")
47
+
48
+ # TODO(GH#32514): Order of entries with the same count is inconsistent
49
+ # on CI (gh-32449)
50
+ if obj.duplicated().any():
51
+ result = result.sort_index()
52
+ expected = expected.sort_index()
53
+ tm.assert_series_equal(result, expected)
54
+
55
+
56
+ @pytest.mark.parametrize("null_obj", [np.nan, None])
57
+ def test_value_counts_null(null_obj, index_or_series_obj):
58
+ orig = index_or_series_obj
59
+ obj = orig.copy()
60
+
61
+ if not allow_na_ops(obj):
62
+ pytest.skip("type doesn't allow for NA operations")
63
+ elif len(obj) < 1:
64
+ pytest.skip("Test doesn't make sense on empty data")
65
+ elif isinstance(orig, MultiIndex):
66
+ pytest.skip(f"MultiIndex can't hold '{null_obj}'")
67
+
68
+ values = obj._values
69
+ values[0:2] = null_obj
70
+
71
+ klass = type(obj)
72
+ repeated_values = np.repeat(values, range(1, len(values) + 1))
73
+ obj = klass(repeated_values, dtype=obj.dtype)
74
+
75
+ # because np.nan == np.nan is False, but None == None is True
76
+ # np.nan would be duplicated, whereas None wouldn't
77
+ counter = collections.Counter(obj.dropna())
78
+ expected = Series(dict(counter.most_common()), dtype=np.int64, name="count")
79
+
80
+ if obj.dtype != np.float16:
81
+ expected.index = expected.index.astype(obj.dtype)
82
+ else:
83
+ with pytest.raises(NotImplementedError, match="float16 indexes are not "):
84
+ expected.index.astype(obj.dtype)
85
+ return
86
+ expected.index.name = obj.name
87
+
88
+ result = obj.value_counts()
89
+ if obj.duplicated().any():
90
+ # TODO(GH#32514):
91
+ # Order of entries with the same count is inconsistent on CI (gh-32449)
92
+ expected = expected.sort_index()
93
+ result = result.sort_index()
94
+
95
+ if not isinstance(result.dtype, np.dtype):
96
+ if getattr(obj.dtype, "storage", "") == "pyarrow":
97
+ expected = expected.astype("int64[pyarrow]")
98
+ else:
99
+ # i.e IntegerDtype
100
+ expected = expected.astype("Int64")
101
+ tm.assert_series_equal(result, expected)
102
+
103
+ expected[null_obj] = 3
104
+
105
+ result = obj.value_counts(dropna=False)
106
+ if obj.duplicated().any():
107
+ # TODO(GH#32514):
108
+ # Order of entries with the same count is inconsistent on CI (gh-32449)
109
+ expected = expected.sort_index()
110
+ result = result.sort_index()
111
+ tm.assert_series_equal(result, expected)
112
+
113
+
114
+ def test_value_counts_inferred(index_or_series):
115
+ klass = index_or_series
116
+ s_values = ["a", "b", "b", "b", "b", "c", "d", "d", "a", "a"]
117
+ s = klass(s_values)
118
+ expected = Series([4, 3, 2, 1], index=["b", "a", "d", "c"], name="count")
119
+ tm.assert_series_equal(s.value_counts(), expected)
120
+
121
+ if isinstance(s, Index):
122
+ exp = Index(np.unique(np.array(s_values, dtype=np.object_)))
123
+ tm.assert_index_equal(s.unique(), exp)
124
+ else:
125
+ exp = np.unique(np.array(s_values, dtype=np.object_))
126
+ tm.assert_numpy_array_equal(s.unique(), exp)
127
+
128
+ assert s.nunique() == 4
129
+ # don't sort, have to sort after the fact as not sorting is
130
+ # platform-dep
131
+ hist = s.value_counts(sort=False).sort_values()
132
+ expected = Series([3, 1, 4, 2], index=list("acbd"), name="count").sort_values()
133
+ tm.assert_series_equal(hist, expected)
134
+
135
+ # sort ascending
136
+ hist = s.value_counts(ascending=True)
137
+ expected = Series([1, 2, 3, 4], index=list("cdab"), name="count")
138
+ tm.assert_series_equal(hist, expected)
139
+
140
+ # relative histogram.
141
+ hist = s.value_counts(normalize=True)
142
+ expected = Series(
143
+ [0.4, 0.3, 0.2, 0.1], index=["b", "a", "d", "c"], name="proportion"
144
+ )
145
+ tm.assert_series_equal(hist, expected)
146
+
147
+
148
+ def test_value_counts_bins(index_or_series):
149
+ klass = index_or_series
150
+ s_values = ["a", "b", "b", "b", "b", "c", "d", "d", "a", "a"]
151
+ s = klass(s_values)
152
+
153
+ # bins
154
+ msg = "bins argument only works with numeric data"
155
+ with pytest.raises(TypeError, match=msg):
156
+ s.value_counts(bins=1)
157
+
158
+ s1 = Series([1, 1, 2, 3])
159
+ res1 = s1.value_counts(bins=1)
160
+ exp1 = Series({Interval(0.997, 3.0): 4}, name="count")
161
+ tm.assert_series_equal(res1, exp1)
162
+ res1n = s1.value_counts(bins=1, normalize=True)
163
+ exp1n = Series({Interval(0.997, 3.0): 1.0}, name="proportion")
164
+ tm.assert_series_equal(res1n, exp1n)
165
+
166
+ if isinstance(s1, Index):
167
+ tm.assert_index_equal(s1.unique(), Index([1, 2, 3]))
168
+ else:
169
+ exp = np.array([1, 2, 3], dtype=np.int64)
170
+ tm.assert_numpy_array_equal(s1.unique(), exp)
171
+
172
+ assert s1.nunique() == 3
173
+
174
+ # these return the same
175
+ res4 = s1.value_counts(bins=4, dropna=True)
176
+ intervals = IntervalIndex.from_breaks([0.997, 1.5, 2.0, 2.5, 3.0])
177
+ exp4 = Series([2, 1, 1, 0], index=intervals.take([0, 1, 3, 2]), name="count")
178
+ tm.assert_series_equal(res4, exp4)
179
+
180
+ res4 = s1.value_counts(bins=4, dropna=False)
181
+ intervals = IntervalIndex.from_breaks([0.997, 1.5, 2.0, 2.5, 3.0])
182
+ exp4 = Series([2, 1, 1, 0], index=intervals.take([0, 1, 3, 2]), name="count")
183
+ tm.assert_series_equal(res4, exp4)
184
+
185
+ res4n = s1.value_counts(bins=4, normalize=True)
186
+ exp4n = Series(
187
+ [0.5, 0.25, 0.25, 0], index=intervals.take([0, 1, 3, 2]), name="proportion"
188
+ )
189
+ tm.assert_series_equal(res4n, exp4n)
190
+
191
+ # handle NA's properly
192
+ s_values = ["a", "b", "b", "b", np.nan, np.nan, "d", "d", "a", "a", "b"]
193
+ s = klass(s_values)
194
+ expected = Series([4, 3, 2], index=["b", "a", "d"], name="count")
195
+ tm.assert_series_equal(s.value_counts(), expected)
196
+
197
+ if isinstance(s, Index):
198
+ exp = Index(["a", "b", np.nan, "d"])
199
+ tm.assert_index_equal(s.unique(), exp)
200
+ else:
201
+ exp = np.array(["a", "b", np.nan, "d"], dtype=object)
202
+ tm.assert_numpy_array_equal(s.unique(), exp)
203
+ assert s.nunique() == 3
204
+
205
+ s = klass({}) if klass is dict else klass({}, dtype=object)
206
+ expected = Series([], dtype=np.int64, name="count")
207
+ tm.assert_series_equal(s.value_counts(), expected, check_index_type=False)
208
+ # returned dtype differs depending on original
209
+ if isinstance(s, Index):
210
+ tm.assert_index_equal(s.unique(), Index([]), exact=False)
211
+ else:
212
+ tm.assert_numpy_array_equal(s.unique(), np.array([]), check_dtype=False)
213
+
214
+ assert s.nunique() == 0
215
+
216
+
217
+ def test_value_counts_datetime64(index_or_series):
218
+ klass = index_or_series
219
+
220
+ # GH 3002, datetime64[ns]
221
+ # don't test names though
222
+ df = pd.DataFrame(
223
+ {
224
+ "person_id": ["xxyyzz", "xxyyzz", "xxyyzz", "xxyyww", "foofoo", "foofoo"],
225
+ "dt": pd.to_datetime(
226
+ [
227
+ "2010-01-01",
228
+ "2010-01-01",
229
+ "2010-01-01",
230
+ "2009-01-01",
231
+ "2008-09-09",
232
+ "2008-09-09",
233
+ ]
234
+ ),
235
+ "food": ["PIE", "GUM", "EGG", "EGG", "PIE", "GUM"],
236
+ }
237
+ )
238
+
239
+ s = klass(df["dt"].copy())
240
+ s.name = None
241
+ idx = pd.to_datetime(
242
+ ["2010-01-01 00:00:00", "2008-09-09 00:00:00", "2009-01-01 00:00:00"]
243
+ )
244
+ expected_s = Series([3, 2, 1], index=idx, name="count")
245
+ tm.assert_series_equal(s.value_counts(), expected_s)
246
+
247
+ expected = pd.array(
248
+ np.array(
249
+ ["2010-01-01 00:00:00", "2009-01-01 00:00:00", "2008-09-09 00:00:00"],
250
+ dtype="datetime64[ns]",
251
+ )
252
+ )
253
+ if isinstance(s, Index):
254
+ tm.assert_index_equal(s.unique(), DatetimeIndex(expected))
255
+ else:
256
+ tm.assert_extension_array_equal(s.unique(), expected)
257
+
258
+ assert s.nunique() == 3
259
+
260
+ # with NaT
261
+ s = df["dt"].copy()
262
+ s = klass(list(s.values) + [pd.NaT] * 4)
263
+
264
+ result = s.value_counts()
265
+ assert result.index.dtype == "datetime64[ns]"
266
+ tm.assert_series_equal(result, expected_s)
267
+
268
+ result = s.value_counts(dropna=False)
269
+ expected_s = pd.concat(
270
+ [Series([4], index=DatetimeIndex([pd.NaT]), name="count"), expected_s]
271
+ )
272
+ tm.assert_series_equal(result, expected_s)
273
+
274
+ assert s.dtype == "datetime64[ns]"
275
+ unique = s.unique()
276
+ assert unique.dtype == "datetime64[ns]"
277
+
278
+ # numpy_array_equal cannot compare pd.NaT
279
+ if isinstance(s, Index):
280
+ exp_idx = DatetimeIndex(expected.tolist() + [pd.NaT])
281
+ tm.assert_index_equal(unique, exp_idx)
282
+ else:
283
+ tm.assert_extension_array_equal(unique[:3], expected)
284
+ assert pd.isna(unique[3])
285
+
286
+ assert s.nunique() == 3
287
+ assert s.nunique(dropna=False) == 4
288
+
289
+ # timedelta64[ns]
290
+ td = df.dt - df.dt + timedelta(1)
291
+ td = klass(td, name="dt")
292
+
293
+ result = td.value_counts()
294
+ expected_s = Series([6], index=Index([Timedelta("1day")], name="dt"), name="count")
295
+ tm.assert_series_equal(result, expected_s)
296
+
297
+ expected = TimedeltaIndex(["1 days"], name="dt")
298
+ if isinstance(td, Index):
299
+ tm.assert_index_equal(td.unique(), expected)
300
+ else:
301
+ tm.assert_extension_array_equal(td.unique(), expected._values)
302
+
303
+ td2 = timedelta(1) + (df.dt - df.dt)
304
+ td2 = klass(td2, name="dt")
305
+ result2 = td2.value_counts()
306
+ tm.assert_series_equal(result2, expected_s)
307
+
308
+
309
+ @pytest.mark.parametrize("dropna", [True, False])
310
+ def test_value_counts_with_nan(dropna, index_or_series):
311
+ # GH31944
312
+ klass = index_or_series
313
+ values = [True, pd.NA, np.nan]
314
+ obj = klass(values)
315
+ res = obj.value_counts(dropna=dropna)
316
+ if dropna is True:
317
+ expected = Series([1], index=Index([True], dtype=obj.dtype), name="count")
318
+ else:
319
+ expected = Series([1, 1, 1], index=[True, pd.NA, np.nan], name="count")
320
+ tm.assert_series_equal(res, expected)
videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_arithmetic.cpython-310.pyc ADDED
Binary file (29.4 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_iteration.cpython-310.pyc ADDED
Binary file (1.62 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_npfuncs.cpython-310.pyc ADDED
Binary file (833 Bytes). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_repr.cpython-310.pyc ADDED
Binary file (18 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/__pycache__/test_validate.cpython-310.pyc ADDED
Binary file (848 Bytes). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (185 Bytes). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_cat_accessor.cpython-310.pyc ADDED
Binary file (8.33 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_dt_accessor.cpython-310.pyc ADDED
Binary file (23.5 kB). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_sparse_accessor.cpython-310.pyc ADDED
Binary file (778 Bytes). View file
 
videochat2/lib/python3.10/site-packages/pandas/tests/series/accessors/__pycache__/test_str_accessor.cpython-310.pyc ADDED
Binary file (1.5 kB). View file
 
videochat2/lib/python3.10/site-packages/pyparsing/__init__.py ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # module pyparsing.py
2
+ #
3
+ # Copyright (c) 2003-2022 Paul T. McGuire
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining
6
+ # a copy of this software and associated documentation files (the
7
+ # "Software"), to deal in the Software without restriction, including
8
+ # without limitation the rights to use, copy, modify, merge, publish,
9
+ # distribute, sublicense, and/or sell copies of the Software, and to
10
+ # permit persons to whom the Software is furnished to do so, subject to
11
+ # the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be
14
+ # included in all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ #
24
+
25
+ __doc__ = """
26
+ pyparsing module - Classes and methods to define and execute parsing grammars
27
+ =============================================================================
28
+
29
+ The pyparsing module is an alternative approach to creating and
30
+ executing simple grammars, vs. the traditional lex/yacc approach, or the
31
+ use of regular expressions. With pyparsing, you don't need to learn
32
+ a new syntax for defining grammars or matching expressions - the parsing
33
+ module provides a library of classes that you use to construct the
34
+ grammar directly in Python.
35
+
36
+ Here is a program to parse "Hello, World!" (or any greeting of the form
37
+ ``"<salutation>, <addressee>!"``), built up using :class:`Word`,
38
+ :class:`Literal`, and :class:`And` elements
39
+ (the :meth:`'+'<ParserElement.__add__>` operators create :class:`And` expressions,
40
+ and the strings are auto-converted to :class:`Literal` expressions)::
41
+
42
+ from pyparsing import Word, alphas
43
+
44
+ # define grammar of a greeting
45
+ greet = Word(alphas) + "," + Word(alphas) + "!"
46
+
47
+ hello = "Hello, World!"
48
+ print(hello, "->", greet.parse_string(hello))
49
+
50
+ The program outputs the following::
51
+
52
+ Hello, World! -> ['Hello', ',', 'World', '!']
53
+
54
+ The Python representation of the grammar is quite readable, owing to the
55
+ self-explanatory class names, and the use of :class:`'+'<And>`,
56
+ :class:`'|'<MatchFirst>`, :class:`'^'<Or>` and :class:`'&'<Each>` operators.
57
+
58
+ The :class:`ParseResults` object returned from
59
+ :class:`ParserElement.parse_string` can be
60
+ accessed as a nested list, a dictionary, or an object with named
61
+ attributes.
62
+
63
+ The pyparsing module handles some of the problems that are typically
64
+ vexing when writing text parsers:
65
+
66
+ - extra or missing whitespace (the above program will also handle
67
+ "Hello,World!", "Hello , World !", etc.)
68
+ - quoted strings
69
+ - embedded comments
70
+
71
+
72
+ Getting Started -
73
+ -----------------
74
+ Visit the classes :class:`ParserElement` and :class:`ParseResults` to
75
+ see the base classes that most other pyparsing
76
+ classes inherit from. Use the docstrings for examples of how to:
77
+
78
+ - construct literal match expressions from :class:`Literal` and
79
+ :class:`CaselessLiteral` classes
80
+ - construct character word-group expressions using the :class:`Word`
81
+ class
82
+ - see how to create repetitive expressions using :class:`ZeroOrMore`
83
+ and :class:`OneOrMore` classes
84
+ - use :class:`'+'<And>`, :class:`'|'<MatchFirst>`, :class:`'^'<Or>`,
85
+ and :class:`'&'<Each>` operators to combine simple expressions into
86
+ more complex ones
87
+ - associate names with your parsed results using
88
+ :class:`ParserElement.set_results_name`
89
+ - access the parsed data, which is returned as a :class:`ParseResults`
90
+ object
91
+ - find some helpful expression short-cuts like :class:`DelimitedList`
92
+ and :class:`one_of`
93
+ - find more useful common expressions in the :class:`pyparsing_common`
94
+ namespace class
95
+ """
96
+ from typing import NamedTuple
97
+
98
+
99
+ class version_info(NamedTuple):
100
+ major: int
101
+ minor: int
102
+ micro: int
103
+ releaselevel: str
104
+ serial: int
105
+
106
+ @property
107
+ def __version__(self):
108
+ return (
109
+ f"{self.major}.{self.minor}.{self.micro}"
110
+ + (
111
+ f"{'r' if self.releaselevel[0] == 'c' else ''}{self.releaselevel[0]}{self.serial}",
112
+ "",
113
+ )[self.releaselevel == "final"]
114
+ )
115
+
116
+ def __str__(self):
117
+ return f"{__name__} {self.__version__} / {__version_time__}"
118
+
119
+ def __repr__(self):
120
+ return f"{__name__}.{type(self).__name__}({', '.join('{}={!r}'.format(*nv) for nv in zip(self._fields, self))})"
121
+
122
+
123
+ __version_info__ = version_info(3, 2, 0, "final", 1)
124
+ __version_time__ = "13 Oct 2024 09:46 UTC"
125
+ __version__ = __version_info__.__version__
126
+ __versionTime__ = __version_time__
127
+ __author__ = "Paul McGuire <ptmcg.gm+pyparsing@gmail.com>"
128
+
129
+ from .util import *
130
+ from .exceptions import *
131
+ from .actions import *
132
+ from .core import __diag__, __compat__
133
+ from .results import *
134
+ from .core import *
135
+ from .core import _builtin_exprs as core_builtin_exprs
136
+ from .helpers import *
137
+ from .helpers import _builtin_exprs as helper_builtin_exprs
138
+
139
+ from .unicode import unicode_set, UnicodeRangeList, pyparsing_unicode as unicode
140
+ from .testing import pyparsing_test as testing
141
+ from .common import (
142
+ pyparsing_common as common,
143
+ _builtin_exprs as common_builtin_exprs,
144
+ )
145
+
146
+ # Compatibility synonyms
147
+ if "pyparsing_unicode" not in globals():
148
+ pyparsing_unicode = unicode # type: ignore[misc]
149
+ if "pyparsing_common" not in globals():
150
+ pyparsing_common = common
151
+ if "pyparsing_test" not in globals():
152
+ pyparsing_test = testing
153
+
154
+ core_builtin_exprs += common_builtin_exprs + helper_builtin_exprs
155
+
156
+
157
+ __all__ = [
158
+ "__version__",
159
+ "__version_time__",
160
+ "__author__",
161
+ "__compat__",
162
+ "__diag__",
163
+ "And",
164
+ "AtLineStart",
165
+ "AtStringStart",
166
+ "CaselessKeyword",
167
+ "CaselessLiteral",
168
+ "CharsNotIn",
169
+ "CloseMatch",
170
+ "Combine",
171
+ "DelimitedList",
172
+ "Dict",
173
+ "Each",
174
+ "Empty",
175
+ "FollowedBy",
176
+ "Forward",
177
+ "GoToColumn",
178
+ "Group",
179
+ "IndentedBlock",
180
+ "Keyword",
181
+ "LineEnd",
182
+ "LineStart",
183
+ "Literal",
184
+ "Located",
185
+ "PrecededBy",
186
+ "MatchFirst",
187
+ "NoMatch",
188
+ "NotAny",
189
+ "OneOrMore",
190
+ "OnlyOnce",
191
+ "OpAssoc",
192
+ "Opt",
193
+ "Optional",
194
+ "Or",
195
+ "ParseBaseException",
196
+ "ParseElementEnhance",
197
+ "ParseException",
198
+ "ParseExpression",
199
+ "ParseFatalException",
200
+ "ParseResults",
201
+ "ParseSyntaxException",
202
+ "ParserElement",
203
+ "PositionToken",
204
+ "QuotedString",
205
+ "RecursiveGrammarException",
206
+ "Regex",
207
+ "SkipTo",
208
+ "StringEnd",
209
+ "StringStart",
210
+ "Suppress",
211
+ "Tag",
212
+ "Token",
213
+ "TokenConverter",
214
+ "White",
215
+ "Word",
216
+ "WordEnd",
217
+ "WordStart",
218
+ "ZeroOrMore",
219
+ "Char",
220
+ "alphanums",
221
+ "alphas",
222
+ "alphas8bit",
223
+ "any_close_tag",
224
+ "any_open_tag",
225
+ "autoname_elements",
226
+ "c_style_comment",
227
+ "col",
228
+ "common_html_entity",
229
+ "condition_as_parse_action",
230
+ "counted_array",
231
+ "cpp_style_comment",
232
+ "dbl_quoted_string",
233
+ "dbl_slash_comment",
234
+ "delimited_list",
235
+ "dict_of",
236
+ "empty",
237
+ "hexnums",
238
+ "html_comment",
239
+ "identchars",
240
+ "identbodychars",
241
+ "infix_notation",
242
+ "java_style_comment",
243
+ "line",
244
+ "line_end",
245
+ "line_start",
246
+ "lineno",
247
+ "make_html_tags",
248
+ "make_xml_tags",
249
+ "match_only_at_col",
250
+ "match_previous_expr",
251
+ "match_previous_literal",
252
+ "nested_expr",
253
+ "null_debug_action",
254
+ "nums",
255
+ "one_of",
256
+ "original_text_for",
257
+ "printables",
258
+ "punc8bit",
259
+ "pyparsing_common",
260
+ "pyparsing_test",
261
+ "pyparsing_unicode",
262
+ "python_style_comment",
263
+ "quoted_string",
264
+ "remove_quotes",
265
+ "replace_with",
266
+ "replace_html_entity",
267
+ "rest_of_line",
268
+ "sgl_quoted_string",
269
+ "srange",
270
+ "string_end",
271
+ "string_start",
272
+ "token_map",
273
+ "trace_parse_action",
274
+ "ungroup",
275
+ "unicode_set",
276
+ "unicode_string",
277
+ "with_attribute",
278
+ "with_class",
279
+ # pre-PEP8 compatibility names
280
+ "__versionTime__",
281
+ "anyCloseTag",
282
+ "anyOpenTag",
283
+ "cStyleComment",
284
+ "commonHTMLEntity",
285
+ "conditionAsParseAction",
286
+ "countedArray",
287
+ "cppStyleComment",
288
+ "dblQuotedString",
289
+ "dblSlashComment",
290
+ "delimitedList",
291
+ "dictOf",
292
+ "htmlComment",
293
+ "indentedBlock",
294
+ "infixNotation",
295
+ "javaStyleComment",
296
+ "lineEnd",
297
+ "lineStart",
298
+ "locatedExpr",
299
+ "makeHTMLTags",
300
+ "makeXMLTags",
301
+ "matchOnlyAtCol",
302
+ "matchPreviousExpr",
303
+ "matchPreviousLiteral",
304
+ "nestedExpr",
305
+ "nullDebugAction",
306
+ "oneOf",
307
+ "opAssoc",
308
+ "originalTextFor",
309
+ "pythonStyleComment",
310
+ "quotedString",
311
+ "removeQuotes",
312
+ "replaceHTMLEntity",
313
+ "replaceWith",
314
+ "restOfLine",
315
+ "sglQuotedString",
316
+ "stringEnd",
317
+ "stringStart",
318
+ "tokenMap",
319
+ "traceParseAction",
320
+ "unicodeString",
321
+ "withAttribute",
322
+ "withClass",
323
+ "common",
324
+ "unicode",
325
+ "testing",
326
+ ]