arraykit 1.10.0__tar.gz → 1.12.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. {arraykit-1.10.0/arraykit.egg-info → arraykit-1.12.0}/PKG-INFO +13 -1
  2. {arraykit-1.10.0 → arraykit-1.12.0}/README.rst +12 -0
  3. arraykit-1.12.0/VERSION +2 -0
  4. {arraykit-1.10.0 → arraykit-1.12.0/arraykit.egg-info}/PKG-INFO +13 -1
  5. {arraykit-1.10.0 → arraykit-1.12.0}/arraykit.egg-info/SOURCES.txt +3 -0
  6. {arraykit-1.10.0 → arraykit-1.12.0}/src/__init__.py +3 -0
  7. {arraykit-1.10.0 → arraykit-1.12.0}/src/__init__.pyi +7 -0
  8. {arraykit-1.10.0 → arraykit-1.12.0}/src/_arraykit.c +12 -0
  9. {arraykit-1.10.0 → arraykit-1.12.0}/src/methods.c +563 -0
  10. {arraykit-1.10.0 → arraykit-1.12.0}/src/methods.h +9 -0
  11. arraykit-1.12.0/test/test_group_reduce.py +217 -0
  12. arraykit-1.12.0/test/test_map_object.py +153 -0
  13. arraykit-1.12.0/test/test_prepare_iter_for_array.py +190 -0
  14. arraykit-1.10.0/VERSION +0 -2
  15. {arraykit-1.10.0 → arraykit-1.12.0}/LICENSE.txt +0 -0
  16. {arraykit-1.10.0 → arraykit-1.12.0}/MANIFEST.in +0 -0
  17. {arraykit-1.10.0 → arraykit-1.12.0}/arraykit.egg-info/dependency_links.txt +0 -0
  18. {arraykit-1.10.0 → arraykit-1.12.0}/arraykit.egg-info/requires.txt +0 -0
  19. {arraykit-1.10.0 → arraykit-1.12.0}/arraykit.egg-info/top_level.txt +0 -0
  20. {arraykit-1.10.0 → arraykit-1.12.0}/pyproject.toml +0 -0
  21. {arraykit-1.10.0 → arraykit-1.12.0}/setup.cfg +0 -0
  22. {arraykit-1.10.0 → arraykit-1.12.0}/setup.py +0 -0
  23. {arraykit-1.10.0 → arraykit-1.12.0}/src/array_go.c +0 -0
  24. {arraykit-1.10.0 → arraykit-1.12.0}/src/array_go.h +0 -0
  25. {arraykit-1.10.0 → arraykit-1.12.0}/src/array_to_tuple.c +0 -0
  26. {arraykit-1.10.0 → arraykit-1.12.0}/src/array_to_tuple.h +0 -0
  27. {arraykit-1.10.0 → arraykit-1.12.0}/src/auto_map.c +0 -0
  28. {arraykit-1.10.0 → arraykit-1.12.0}/src/auto_map.h +0 -0
  29. {arraykit-1.10.0 → arraykit-1.12.0}/src/block_index.c +0 -0
  30. {arraykit-1.10.0 → arraykit-1.12.0}/src/block_index.h +0 -0
  31. {arraykit-1.10.0 → arraykit-1.12.0}/src/delimited_to_arrays.c +0 -0
  32. {arraykit-1.10.0 → arraykit-1.12.0}/src/delimited_to_arrays.h +0 -0
  33. {arraykit-1.10.0 → arraykit-1.12.0}/src/py.typed +0 -0
  34. {arraykit-1.10.0 → arraykit-1.12.0}/src/tri_map.c +0 -0
  35. {arraykit-1.10.0 → arraykit-1.12.0}/src/tri_map.h +0 -0
  36. {arraykit-1.10.0 → arraykit-1.12.0}/src/utilities.h +0 -0
  37. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_array_go.py +0 -0
  38. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_astype_array.py +0 -0
  39. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_auto_map.py +0 -0
  40. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_auto_map_property.py +0 -0
  41. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_block_index.py +0 -0
  42. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_delimited_to_arrays.py +0 -0
  43. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_delimited_to_arrays_integration.py +0 -0
  44. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_delimited_to_arrays_property.py +0 -0
  45. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_factorize.py +0 -0
  46. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_fill_directional.py +0 -0
  47. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_group_ordering.py +0 -0
  48. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_nonzero_1d.py +0 -0
  49. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_nonzero_1d_property.py +0 -0
  50. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_objectable.py +0 -0
  51. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_pyi.py +0 -0
  52. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_split_after_count.py +0 -0
  53. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_transition_slices_from_group.py +0 -0
  54. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_tri_map.py +0 -0
  55. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_type_discovery.py +0 -0
  56. {arraykit-1.10.0 → arraykit-1.12.0}/test/test_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arraykit
3
- Version: 1.10.0
3
+ Version: 1.12.0
4
4
  Summary: Array utilities for StaticFrame
5
5
  Author: Christopher Ariza, Brandt Bucher, Charles Burkland
6
6
  License: MIT
@@ -64,6 +64,18 @@ ArrayKit requires the following:
64
64
  What is New in ArrayKit
65
65
  -------------------------
66
66
 
67
+ 1.12.0
68
+ ............
69
+
70
+ Added ``map_object()`` and ``prepare_iter_for_array()``.
71
+
72
+
73
+ 1.11.0
74
+ ............
75
+
76
+ Added ``group_reduce()``.
77
+
78
+
67
79
  1.10.0
68
80
  ............
69
81
 
@@ -35,6 +35,18 @@ ArrayKit requires the following:
35
35
  What is New in ArrayKit
36
36
  -------------------------
37
37
 
38
+ 1.12.0
39
+ ............
40
+
41
+ Added ``map_object()`` and ``prepare_iter_for_array()``.
42
+
43
+
44
+ 1.11.0
45
+ ............
46
+
47
+ Added ``group_reduce()``.
48
+
49
+
38
50
  1.10.0
39
51
  ............
40
52
 
@@ -0,0 +1,2 @@
1
+ 1.12.0
2
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arraykit
3
- Version: 1.10.0
3
+ Version: 1.12.0
4
4
  Summary: Array utilities for StaticFrame
5
5
  Author: Christopher Ariza, Brandt Bucher, Charles Burkland
6
6
  License: MIT
@@ -64,6 +64,18 @@ ArrayKit requires the following:
64
64
  What is New in ArrayKit
65
65
  -------------------------
66
66
 
67
+ 1.12.0
68
+ ............
69
+
70
+ Added ``map_object()`` and ``prepare_iter_for_array()``.
71
+
72
+
73
+ 1.11.0
74
+ ............
75
+
76
+ Added ``group_reduce()``.
77
+
78
+
67
79
  1.10.0
68
80
  ............
69
81
 
@@ -39,9 +39,12 @@ test/test_delimited_to_arrays_property.py
39
39
  test/test_factorize.py
40
40
  test/test_fill_directional.py
41
41
  test/test_group_ordering.py
42
+ test/test_group_reduce.py
43
+ test/test_map_object.py
42
44
  test/test_nonzero_1d.py
43
45
  test/test_nonzero_1d_property.py
44
46
  test/test_objectable.py
47
+ test/test_prepare_iter_for_array.py
45
48
  test/test_pyi.py
46
49
  test/test_split_after_count.py
47
50
  test/test_transition_slices_from_group.py
@@ -27,6 +27,9 @@ from ._arraykit import get_new_indexers_and_screen as get_new_indexers_and_scree
27
27
  from ._arraykit import write_array_to_file as write_array_to_file
28
28
  from ._arraykit import factorize as factorize
29
29
  from ._arraykit import group_ordering as group_ordering
30
+ from ._arraykit import group_reduce as group_reduce
31
+ from ._arraykit import map_object as map_object
32
+ from ._arraykit import prepare_iter_for_array as prepare_iter_for_array
30
33
  from ._arraykit import fill_directional as fill_directional
31
34
  from ._arraykit import count_iteration as count_iteration
32
35
  from ._arraykit import first_true_1d as first_true_1d
@@ -233,6 +233,13 @@ def factorize(
233
233
  def group_ordering(
234
234
  codes: np.ndarray, *, size: tp.Optional[int] = ...
235
235
  ) -> tp.Tuple[np.ndarray, np.ndarray]: ...
236
+ def group_reduce(
237
+ codes: np.ndarray, size: int, values: np.ndarray, op: str
238
+ ) -> np.ndarray: ...
239
+ def map_object(array: np.ndarray, func: tp.Callable[[tp.Any], tp.Any]) -> np.ndarray: ...
240
+ def prepare_iter_for_array(
241
+ values: tp.Iterable[tp.Any], copy: bool = ...
242
+ ) -> tp.Tuple[tp.Optional[type], bool, tp.Sequence[tp.Any]]: ...
236
243
  def fill_directional(
237
244
  array: np.ndarray,
238
245
  target: np.ndarray,
@@ -78,6 +78,18 @@ static PyMethodDef arraykit_methods[] = {
78
78
  (PyCFunction)group_ordering,
79
79
  METH_VARARGS | METH_KEYWORDS,
80
80
  NULL},
81
+ {"group_reduce",
82
+ (PyCFunction)group_reduce,
83
+ METH_VARARGS | METH_KEYWORDS,
84
+ NULL},
85
+ {"map_object",
86
+ (PyCFunction)map_object,
87
+ METH_VARARGS | METH_KEYWORDS,
88
+ NULL},
89
+ {"prepare_iter_for_array",
90
+ (PyCFunction)prepare_iter_for_array,
91
+ METH_VARARGS | METH_KEYWORDS,
92
+ NULL},
81
93
  {"fill_directional",
82
94
  (PyCFunction)fill_directional,
83
95
  METH_VARARGS | METH_KEYWORDS,