You can use the following code to remove the elements with value -1 and pad with zeros at the end:
```yaml
import numpy as np

arr = np.array([259, 264, 22987, 269, 121356, 347, 259, 3001, 1027, 287,
                259, 250099, -1, -1, -1, -1, -1, -1, 263, 261, 71905,
                285, 514, 259, 263, 164543, 259, 155480, 250098, -1, -1,
                -1, 287, 5902, 14156, 259, 114959, 41401, 4165, 281, 99165,
                701, 383, 440, 260, 259, 66270, 260, 59470, 263, 250097,
                5863, 13959, 51188, 484, 36849, 285, 514, 259, 262, 15388,
                304, 381, 305, 259, 262, 259, 114959, 12733, 304, 259,
                20387, 260, 259, 1, 0, 0, 0, 0, 0, 0, 0,
                0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

# Remove elements with value -1
arr = arr[arr != -1]

# Pad with zeros at the end
arr = np.pad(arr, (0, 100 - len(arr)), 'constant')

print(arr)
```
The output will be:
```yaml
array([  259,   264, 22987,   269, 121356,   347,   259,  3001,  1027,
         287,   259, 250099,   263,   261, 71905,   285,   514,   259,
         263, 164543,   259, 155480, 250098,   287,  5902, 14156,   259,
      114959, 41401,  4165,   281, 99165,   701,   383,   440,   260,
         259, 66270,   260, 59470,   263, 250097,  5863, 13959, 51188,
         484, 36849,   285,   514,   259,   262, 15388,   304,   381,
         305,   259,   262,   259, 114959, 12733,   304,   259, 20387,
         260,   259,    1,    0,    0,    0,    0,    0,    0,    0,
           0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
           0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
           0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
           0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
           0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
           0,
```
다음 코드를 사용하여 값이 -1인 요소를 제거하고 끝에 0을 붙여 넣을 수 있습니다:
```yaml
numpy를 np로 가져옵니다.

arr = np.array([259, 264, 22987, 269, 121356, 347, 259, 3001, 1027, 287,
                259, 250099, -1, -1, -1, -1, -1, -1, 263, 261, 71905,
                285, 514, 259, 263, 164543, 259, 155480, 250098, -1, -1,
                -1, 287, 5902, 14156, 259, 114959, 41401, 4165, 281, 99165,
                701, 383, 440, 260, 259, 66270, 260, 59470, 263, 250097,
                5863, 13959, 51188, 484, 36849, 285, 514, 259, 262, 15388,
                304, 381, 305, 259, 262, 259, 114959, 12733, 304, 259,
                20387, 260, 259, 1, 0, 0, 0, 0, 0, 0, 0,
                0, 0, 0, 0, 0, 0, 0, 0, 0, 0])

# 값이 -1인 요소 제거
arr = arr[arr != -1]

# 끝에 0이 있는 패드
arr = np.pad(arr, (0, 100 - len(arr)), '상수')

print(arr)
```
출력은 다음과 같습니다:
```yaml
array([ 259, 264, 22987, 269, 121356, 347, 259, 3001, 1027,
         287, 259, 250099, 263, 261, 71905, 285, 514, 259,
         263, 164543, 259, 155480, 250098, 287, 5902, 14156, 259,
      114959, 41401, 4165, 281, 99165, 701, 383, 440, 260,
         259, 66270, 260, 59470, 263, 250097, 5863, 13959, 51188,
         484, 36849, 285, 514, 259, 262, 15388, 304, 381,
         305, 259, 262, 259, 114959, 12733, 304, 259, 20387,
         260, 259, 1, 0, 0, 0, 0, 0, 0, 0,
           0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
           0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
           0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
           0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
           0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
           0,
```