Skip to content

applying .astype() for specific indices doesn’t work

I want to change first column to int in dnarray [[ 1. 6.218 2.974 0. ] [ 2. 32.881 8.66 0. ] [ 3. 38.94 35.843 0. ] [ 4. 8.52 35.679 0. ] [ 5. 52.902 49.538 0. ]] float64 int32 float64 I tried to use deepcopy, but no success. Any help will be good, I didn’t find any