10000 Merge pull request #26517 from mtsokol/alltrue-docs-update · numpy/numpy@59e0db9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 59e0db9

Browse files
authored
Merge pull request #26517 from mtsokol/alltrue-docs-update
DOC: Add missing functions to the migration guide
2 parents 9142f32 + d8de7a3 commit 59e0db9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/source/numpy_2_0_migration_guide.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,15 @@ removed member migration guideline
246246
add_docstring It's still available as ``np.lib.add_docstring``.
247247
add_newdoc It's still available as ``np.lib.add_newdoc``.
248248
add_newdoc_ufunc It's an internal function and doesn't have a replacement.
249+
alltrue Use ``all`` instead.
249250
asfarray Use ``np.asarray`` with a float dtype instead.
250251
byte_bounds Now it's available under ``np.lib.array_utils.byte_bounds``
251252
cast Use ``np.asarray(arr, dtype=dtype)`` instead.
252253
cfloat Use ``np.complex128`` instead.
253254
clongfloat Use ``np.clongdouble`` instead.
254255
compat There's no replacement, as Python 2 is no longer supported.
255256
complex\_ Use ``np.complex128`` instead.
257+
cumproduct Use ``np.cumprod`` instead.
256258
DataSource It's still available as ``np.lib.npyio.DataSource``.
257259
deprecate Emit ``DeprecationWarning`` with ``warnings.warn`` directly,
258260
or use ``typing.deprecated``.
@@ -286,6 +288,7 @@ longfloat Use ``np.longdouble`` instead.
286288
lookfor Search NumPy's documentation directly.
287289
obj2sctype Use ``np.dtype(obj).type`` instead.
288290
PINF Use ``np.inf`` instead.
291+
product Use ``np.prod`` instead.
289292
PZERO Use ``0.0`` instead.
290293
recfromcsv Use ``np.genfromtxt`` with comma delimiter instead.
291294
recfromtxt Use ``np.genfromtxt`` instead.
@@ -301,6 +304,7 @@ set_string_function Use ``np.set_printoptions`` instead with a formatter
301304
for custom printing of NumPy objects.
302305
singlecomplex Use ``np.complex64`` instead.
303306
string\_ Use ``np.bytes_`` instead.
307+
sometrue Use ``any`` instead.
304308
source Use ``inspect.getsource`` instead.
305309
tracemalloc_domain It's now available from ``np.lib``.
306310
unicode\_ Use ``np.str_`` instead.

0 commit comments

Comments
 (0)
0