I have a method where it checks if we are at row 0.
If yes: it creates the Numpy array as that row. If no: it appends the row to the Numpy array
def printStatement(row):
global newData
if(count == 0):
newData = np.array(row)
else:
print("Made it to second row")
np.append(newData, row)
It does confirm that it made it to the else statement. But newData does not grow past the first row.
Is there something I need to specify when creating the array? All rows are the same shape.
***2D Array (Added for search engine)
np.array([row, row, row,...])?