python numpy data types || data types || dtype || numpy ||python ||Ak

preview_player
Показать описание
# using array-scalar type
import numpy as np
print (dt)

#int8, int16, int32, int64 can be replaced by equivalent string 'i1', 'i2','i4', etc.
import numpy as np

print (dt)

# using endian notation
import numpy as np
print (dt)

#The following examples show the use of structured data type.
#Here, the field name and the corresponding scalar data type is to be declared.
# first create structured data type
import numpy as np
print (dt)

# now apply it to ndarray object
import numpy as np
print (a)

# file name can be used to access content of age column
import numpy as np

print (a['age'])

#The following examples define a structured data type called student
#with a string field 'name', an integer field 'age' and a float field 'marks'.
#This dtype is applied to ndarray object.
import numpy as np
print (student)

import numpy as np
print (a)

thanxxxxxxxxxx
Рекомендации по теме
Комментарии
Автор

u copy and paste ....ok
can u explain.... what is 'S20'? and what it means?

kalpatarunayak
join shbcf.ru