I have an array to which i would like to add 1's to the last column of the first 16 rows and 0's to the last column of rows from 17 to 27. I searched everywhere however splitting seems to work only when we want to split the array into even parts, if i could cut the array at a specific row into two smaller arrays it would be easy because i would just append 1's and 0's than bring the arrays together again.
Another option would be to hard code where the specific numbers should go by indexing but that seems a bit complicated
frankly i don't have any more ideas for it, here are the arrays for visual representation of the problem (with shortened rows):
[[0.133987 0.359897 0.000000 0.527855 0.764706 0.212121]
[0.301506 0.407752 0.013970 0.553386 0.830450 0.272727]
[0.414438 0.415456 0.023283 0.597853 0.833910 0.333333]
[0.434815 0.415844 0.046566 0.604616 0.837370 0.363636]
[0.436664 0.500333 0.093132 0.607321 0.868512 0.366667]
[0.447560 0.559649 0.098952 0.626934 0.882353 0.393939]]
I would like to have it like so:`
[[0.133987 0.359897 0.000000 0.527855 0.764706 0.212121 1]
[0.301506 0.407752 0.013970 0.553386 0.830450 0.272727 1]
[0.414438 0.415456 0.023283 0.597853 0.833910 0.333333 1]
[0.434815 0.415844 0.046566 0.604616 0.837370 0.363636 1]
[0.436664 0.500333 0.093132 0.607321 0.868512 0.366667 0]
[0.447560 0.559649 0.098952 0.626934 0.882353 0.393939 0]]