diff --git a/contrib/numpy/datatypes.md b/contrib/numpy/datatypes.md index 6107d8d..d365623 100644 --- a/contrib/numpy/datatypes.md +++ b/contrib/numpy/datatypes.md @@ -166,6 +166,15 @@ The `datetime64()` is used to define the date, month and year. ``` ## Example for string type +``` python + import numpy as np + + arr = np.str_("roopa") + + print(arr.dtype) + + # Output: