File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 3
3
This is the prototype implementation of the variable-width UTF-8 string DType
4
4
described in [ NEP 55] ( https://numpy.org/neps/nep-0055-string_dtype.html ) .
5
5
6
- See the NEP for implementation details and usage examples. Full
7
- documentation will be written as before this code is merged into NumPy.
6
+ See the NEP for implementation details and usage examples. See
7
+ ` numpy.dtypes.StringDType ` for the version that made it into NumPy.
8
8
9
9
## Building
10
10
@@ -37,19 +37,3 @@ $ meson build
37
37
$ python -m build --wheel -Cbuilddir=build
38
38
$ python -m pip install dist/path-to-wheel-file.whl
39
39
```
40
-
41
- ## Usage
42
-
43
- The dtype will not import unless you run python executable with
44
- the ` NUMPY_EXPERIMENTAL_DTYPE_API ` environment variable set:
45
-
46
- ``` bash
47
- $ NUMPY_EXPERIMENTAL_DTYPE_API=1 python
48
- Python 3.11.3 (main, May 2 2023, 11:36:22) [GCC 11.3.0] on linux
49
- Type " help" , " copyright" , " credits" or " license" for more information.
50
- >>> from stringdtype import StringDType
51
- >>> import numpy as np
52
- >>> arr = np.array([" hello" , " world" ], dtype=StringDType())
53
- >>> arr
54
- array([' hello' , ' world' ], dtype=StringDType())
55
- ```
You can’t perform that action at this time.
0 commit comments