File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
doc/release/upcoming_changes Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
* ``np.compare_chararrays `` has been removed from the main namespace.
2
2
Use ``np.char.compare_chararrays `` instead.
3
3
4
- * ``np.chararray `` has been deprecated and it will be removed in the future.
5
- Use ``np.char.chararray `` instead.
4
+ * The ``charrarray `` in the main namespace has been deprecated. It can be imported
5
+ without a deprecation warning from ``np.char.chararray `` for now,
6
+ but we are planning to fully deprecate and remove ``chararray `` in the future.
6
7
7
8
* ``np.format_parser `` has been removed from the main namespace.
8
9
Use ``np.rec.format_parser `` instead.
Original file line number Diff line number Diff line change @@ -393,8 +393,8 @@ def __getattr__(attr):
393
393
if attr == "chararray" :
394
394
warnings .warn (
395
395
"`np.chararray` is deprecated and will be removed from "
396
- "the main namespace in the future. Use `np.char.chararray` "
397
- "instead." , DeprecationWarning , stacklevel = 2 )
396
+ "the main namespace in the future. Use an array with a string "
397
+ "or bytes dtype instead." , DeprecationWarning , stacklevel = 2 )
398
398
import numpy .char as char
399
399
return char .chararray
400
400
You can’t perform that action at this time.
0 commit comments