My array size is unknown and I would like to remove the very last column
a = np.array([["A1","A2","A3"],["B1","B2","B3"],["C1","C2","C3"]])
I have tried
a[-1:]
but it deleted all rows except the last row
I also tried
a[:-1]
and it deleted the last row.
How can I delete the last column?