I have a 3D array:
array([[[ 0.61795117, 0.34560273],
[ 0.60095554, 0.313913 ],
[ 0.56190875, 0.27450137],
[ 0.53021642, 0.26212656],
[ 0.49034335, 0.25858353],
[ 0.44450648, 0.26146402],
[ 0.41882064, 0.26448245],
[ 0.39206795, 0.26703482],
[ 0.37275912, 0.27370546]],
[[ 0.62495791, 0.3120504 ],
[ 0.60739456, 0.2823137 ],
[ 0.58004256, 0.25910831],
[ 0.54361132, 0.25084742],
[ 0.49346121, 0.24739456],
[ 0.44806806, 0.24990211],
[ 0.40776521, 0.25205095],
[ 0.37056546, 0.256433 ],
[ 0.34548124, 0.26043473]],
[[ 0.65452639, 0.26129899],
[ 0.62969364, 0.25388184],
[ 0.59575798, 0.24279791],
[ 0.56249134, 0.23879938],
[ 0.50719102, 0.23659991],
[ 0.4391442 , 0.23682689],
[ 0.39447801, 0.23831357],
[ 0.35186027, 0.24433696],
[ 0.31920393, 0.25020494]]])
I have a list of indexes:
[(0, 0),(0, 1),(0, 2),(0, 3),(0, 4),(0, 5),(0, 6),(0, 7),(0, 8),(1, 0),(1, 3),(1, 6),(2, 0),(1, 1)]
I am trying to delete the rows in the 3D array that each tuple points to.
I have tried, but unsuccessful
np.delete(array, indexes, axis=0)
Any suggestions?
(0,0)should only delete[ 0.61795117, 0.34560273]and nothing else?