diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-21 20:12:37 +0200 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2021-09-21 20:12:37 +0200 |
commit | 50fdbbb31d94a2485460e15fbe7ef974fc8e830d (patch) | |
tree | 81840eb26f39c8106701b68b4aadc4cf7ef665ed /numpy/core/defchararray.py | |
parent | e467a284d1a2055337ce73cd92aadb491aa9a776 (diff) | |
download | numpy-50fdbbb31d94a2485460e15fbe7ef974fc8e830d.tar.gz |
MAINT: Override the modules of `np.char` and `np.rec` functions
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index e264fa210..3521e778e 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -2609,6 +2609,7 @@ class chararray(ndarray): return isdecimal(self) +@set_module("numpy.char") def array(obj, itemsize=None, copy=True, unicode=None, order=None): """ Create a `chararray`. @@ -2742,6 +2743,7 @@ def array(obj, itemsize=None, copy=True, unicode=None, order=None): return val.view(chararray) +@set_module("numpy.char") def asarray(obj, itemsize=None, unicode=None, order=None): """ Convert the input to a `chararray`, copying the data only if |