How could I write a numpy function where it only filters out the array strings that ends with 'USD'. How would I be able to execute this filter without a for loop.
import numpy as np
Array= ['BTCUSD', 'ETHUSD', 'David', 'georGe', 'XRPUSD', 'USDAUD', 'ETHUSDC' ]
Expected Output
['BTCUSD', 'ETHUSD', 'XRPUSD']
numpydoesn't have fast string methods, so beware of trying to replace list/string methods withnumpy.