@@ -410,9 +410,6 @@ def mod(a, values):
410
410
out : ndarray
411
411
Output array of str or unicode, depending on input types
412
412
413
- See Also
414
- --------
415
- str.__mod__
416
413
417
414
"""
418
415
return _to_bytes_or_str_array (
@@ -1931,10 +1928,10 @@ class chararray(ndarray):
1931
1928
The `chararray` class exists for backwards compatibility with
1932
1929
Numarray, it is not recommended for new development. Starting from numpy
1933
1930
1.4, if one needs arrays of strings, it is recommended to use arrays of
1934
- `dtype` `object_`, `bytes_` or `str_`, and use the free functions
1931
+ `dtype` `~numpy. object_`, `~numpy. bytes_` or `~numpy. str_`, and use the free functions
1935
1932
in the `numpy.char` module for fast vectorized string operations.
1936
1933
1937
- Versus a NumPy array of dtype `bytes_` or `str_`, this
1934
+ Versus a NumPy array of dtype `~numpy. bytes_` or `~numpy. str_`, this
1938
1935
class adds the following functionality:
1939
1936
1940
1937
1) values automatically have whitespace removed from the end
@@ -2036,7 +2033,7 @@ class adds the following functionality:
2036
2033
Fixed stride displacement from the beginning of an axis?
2037
2034
Default is 0. Needs to be >=0.
2038
2035
strides : array_like of ints, optional
2039
- Strides for the array (see `ndarray.strides` for full description).
2036
+ Strides for the array (see `~numpy. ndarray.strides` for full description).
2040
2037
Default is None.
2041
2038
order : {'C', 'F'}, optional
2042
2039
The order in which the array data is stored in memory: 'C' ->
@@ -2731,13 +2728,13 @@ def isdecimal(self):
2731
2728
@set_module ("numpy.char" )
2732
2729
def array (obj , itemsize = None , copy = True , unicode = None , order = None ):
2733
2730
"""
2734
- Create a `chararray`.
2731
+ Create a `~numpy.char. chararray`.
2735
2732
2736
2733
.. note::
2737
2734
This class is provided for numarray backward-compatibility.
2738
2735
New code (not concerned with numarray compatibility) should use
2739
2736
arrays of type `bytes_` or `str_` and use the free functions
2740
- in :mod:`numpy.char <numpy.core.defchararray> ` for fast
2737
+ in :mod:`numpy.char` for fast
2741
2738
vectorized string operations instead.
2742
2739
2743
2740
Versus a NumPy array of dtype `bytes_` or `str_`, this
@@ -2750,7 +2747,7 @@ class adds the following functionality:
2750
2747
end when comparing values
2751
2748
2752
2749
3) vectorized string operations are provided as methods
2753
- (e.g. `~ chararray.endswith`) and infix operators (e.g. ``+, *, %``)
2750
+ (e.g. `chararray.endswith <numpy.char.chararray.endswith> `) and infix operators (e.g. ``+, *, %``)
2754
2751
2755
2752
Parameters
2756
2753
----------
@@ -2771,11 +2768,11 @@ class adds the following functionality:
2771
2768
requirements (`itemsize`, unicode, `order`, etc.).
2772
2769
2773
2770
unicode : bool, optional
2774
- When true, the resulting `chararray` can contain Unicode
2771
+ When true, the resulting `~numpy.char. chararray` can contain Unicode
2775
2772
characters, when false only 8-bit characters. If unicode is
2776
2773
None and `obj` is one of the following:
2777
2774
2778
- - a `chararray`,
2775
+ - a `~numpy.char. chararray`,
2779
2776
- an ndarray of type `str_` or `unicode_`
2780
2777
- a Python str or unicode object,
2781
2778
@@ -2865,7 +2862,7 @@ class adds the following functionality:
2865
2862
@set_module ("numpy.char" )
2866
2863
def asarray (obj , itemsize = None , unicode = None , order = None ):
2867
2864
"""
2868
- Convert the input to a `chararray`, copying the data only if
2865
+ Convert the input to a `~numpy.char. chararray`, copying the data only if
2869
2866
necessary.
2870
2867
2871
2868
Versus a NumPy array of dtype `bytes_` or `str_`, this
@@ -2878,7 +2875,7 @@ class adds the following functionality:
2878
2875
end when comparing values
2879
2876
2880
2877
3) vectorized string operations are provided as methods
2881
- (e.g. `~ chararray.endswith`) and infix operators
2878
+ (e.g. `chararray.endswith <numpy.char.chararray.endswith> `) and infix operators
2882
2879
(e.g. ``+``, ``*``, ``%``)
2883
2880
2884
2881
Parameters
@@ -2894,11 +2891,11 @@ class adds the following functionality:
2894
2891
chunked into `itemsize` pieces.
2895
2892
2896
2893
unicode : bool, optional
2897
- When true, the resulting `chararray` can contain Unicode
2894
+ When true, the resulting `~numpy.char. chararray` can contain Unicode
2898
2895
characters, when false only 8-bit characters. If unicode is
2899
2896
None and `obj` is one of the following:
2900
2897
2901
- - a `chararray`,
2898
+ - a `~numpy.char. chararray`,
2902
2899
- an ndarray of type `str_` or `unicode_`
2903
2900
- a Python str or unicode object,
2904
2901
0 commit comments