I'm trying to load a binary file to numpy and drop some unwanted values that i don't need, then reshape that array and use it to do some calculations.

here is my code for reference:

```
def read_binary_data(filename, buffer_size):

    np.set_printoptions(threshold=sys.maxsize)
    np.set_printoptions(formatter={'int': hex})

    with open(filename, "rb") as f:
        binary_array = np.fromfile(f, dtype='B', offset=3)

    print(binary_array)

```

and here is the result:

```
 ...
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xd2 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xd2 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xd2 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xd2 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xd2 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xd2 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0 0x4e 0x44 0x0 0x0 0x8 0x0 0x0 0x0 0xcf 0xf4
 0xff 0xff 0x0 0x0 0x0 0x0]

```

Let's say for instance I want to remove all occurrences of `0x4e 0x44` but not `0x4e` and `0x44` on their own, it's the combination of the two that I'm interested in. because if say i have `0x4e 0x54` I want to keep this one intact.

how would I be able to do that?

Thank you for your help