Hi, I am attempting to create a 2d list consisting of int values and floats, taken from an object in a list of objects. My code looks like this:
while c < (len(object_list)-1):
a_list = []
b_list = []
c_list = []
d_list = []
array = []
a_list.extend([object_list[c].a_value1,object_list[c].a_value2,object_list[c].a_value3,object_list.a_value4])
so on and so forth for b, c, and d list.
array = np.zeros((4,len(a_list)))
for i in range(len(a_list)):
array[0][i] = int(a_list)
for i in range(len(a_list)):
array[1][i] = int(b_list)
np.transpose(array)
array[array[0:2].argsort()]
print(array[0][3])
/end code
here is the problem: I get a huge number of values from the print function instead of one. What is going on?