summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/add_newdocs.py5
-rw-r--r--numpy/lib/function_base.py3
2 files changed, 5 insertions, 3 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 9372b3431..a39aebc0c 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -605,6 +605,7 @@ add_newdoc('numpy.core', 'broadcast',
Examples
--------
+
Manually adding two vectors, using broadcasting:
>>> x = np.array([[1], [2], [3]])
@@ -7144,8 +7145,8 @@ add_newdoc('numpy.core.multiarray', 'datetime_data',
Get information about the step size of a date or time type.
- The returned tuple can be passed as the second argument of `datetime64` and
- `timedelta64`.
+ The returned tuple can be passed as the second argument of `numpy.datetime64` and
+ `numpy.timedelta64`.
Parameters
----------
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 95edb95fa..c06065ba6 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -3543,7 +3543,7 @@ def percentile(a, q, axis=None, out=None,
def quantile(a, q, axis=None, out=None,
overwrite_input=False, interpolation='linear', keepdims=False):
"""
- Compute the `q`th quantile of the data along the specified axis.
+ Compute the qth quantile of the data along the specified axis.
..versionadded:: 1.15.0
Parameters
@@ -3569,6 +3569,7 @@ def quantile(a, q, axis=None, out=None,
This optional parameter specifies the interpolation method to
use when the desired quantile lies between two data points
``i < j``:
+
* linear: ``i + (j - i) * fraction``, where ``fraction``
is the fractional part of the index surrounded by ``i``
and ``j``.