Skip to content

Commit 2f3da0d

Browse files
authored
Merge pull request numpy#26805 from mtsokol/docs-update
DOC: Update 2.0 migration guide and release note
2 parents 26a2e6c + 75a73e5 commit 2f3da0d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/source/numpy_2_0_migration_guide.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ asfarray Use ``np.asarray`` with a float dtype instead.
251251
byte_bounds Now it's available under ``np.lib.array_utils.byte_bounds``
252252
cast Use ``np.asarray(arr, dtype=dtype)`` instead.
253253
cfloat Use ``np.complex128`` instead.
254+
charrarray It's still available as ``np.char.chararray``.
254255
clongfloat Use ``np.clongdouble`` instead.
256+
compare_chararrays It's still available as ``np.char.compare_chararrays``.
255257
compat There's no replacement, as Python 2 is no longer supported.
256258
complex\_ Use ``np.complex128`` instead.
257259
cumproduct Use ``np.cumprod`` instead.
@@ -266,6 +268,7 @@ find_common_type Use ``numpy.promote_types`` or ``numpy.result_type`` ins
266268
To achieve semantics for the ``scalar_types`` argument,
267269
use ``numpy.result_type`` and pass the Python values ``0``,
268270
``0.0``, or ``0j``.
271+
format_parser It's still available as ``np.rec.format_parser``.
269272
get_array_wrap
270273
float\_ Use ``np.float64`` instead.
271274
geterrobj Use the np.errstate context manager instead.

doc/source/release/2.0.0-notes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ NumPy 2.0 Python API removals
209209

210210
* ``np.tracemalloc_domain`` is now only available from ``np.lib``.
211211

212-
* ``np.recfromcsv`` and ``recfromtxt`` are now only available from ``np.lib.npyio``.
212+
* ``np.recfromcsv`` and ``np.recfromtxt`` were removed from the main namespace.
213+
Use ``np.genfromtxt`` with comma delimiter instead.
213214

214215
* ``np.issctype``, ``np.maximum_sctype``, ``np.obj2sctype``, ``np.sctype2char``,
215216
``np.sctypes``, ``np.issubsctype`` were all removed from the

0 commit comments

Comments
 (0)