8000 Merge pull request #25928 from lysnikolaou/add-np-char-migration-guide · andyfaff/numpy@a8d4e48 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8d4e48

Browse files
authored
Merge pull request numpy#25928 from lysnikolaou/add-np-char-migration-guide
DOC: Add note about np.char & np.strings in 2.0 migration guide
2 parents 0fd60a2 + b941dc4 commit a8d4e48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/source/numpy_2_0_migration_guide.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,16 @@ setitem Use ``arr[index] = value`` instead.
287287
====================== ========================================================
288288

289289

290+
Strings namespace
291+
-----------------
292+
293+
A new ``np.strings`` namespace has been created, where most of the string
294+
operations are implemented as ufuncs. The old ``np.char`` namespace still is
295+
available, and, wherever possible, uses the new ufuncs for greater performance.
296+
We recommend using the ``np.strings`` methods going forward. The ``np.char``
297+
namespace may be deprecated in the future.
298+
299+
290300
Ruff plugin
291301
-----------
292302

0 commit comments

Comments
 (0)
0