kopia lustrzana https://github.com/animator/learn-python
Example for object type is added
rodzic
722d34de63
commit
26a0dc814d
|
@ -168,7 +168,18 @@ The `datetime64()` is used to define the date, month and year.
|
|||
## Example for string type
|
||||
|
||||
## Example for object type
|
||||
``` python
|
||||
import numpy as np
|
||||
|
||||
arr = np.object_([1, 2, 3, 4])
|
||||
|
||||
print(arr)
|
||||
print(arr.dtype)
|
||||
|
||||
# Output:
|
||||
# [1, 2, 3, 4]
|
||||
# object
|
||||
```
|
||||
## Example for unicode string type
|
||||
|
||||
## Example for timedelta type
|
||||
|
|
Ładowanie…
Reference in New Issue