'Filter numpy 2D Array with multiple conditions
I've a numpy 2D array as :
[
['AAPL' Timestamp('2022-03-10 15:00:00') 157.55 159.19 157.13 159.01],
['AAPL' Timestamp('2022-03-11 15:00:00') 158.55 159.19 157.13 159.01],
['AMZN' Timestamp('2022-03-10 15:00:00') 147.55 159.19 157.13 159.01],
['AMZN' Timestamp('2022-03-11 15:00:00') 148.55 159.19 157.13 159.01],
]
I want to filter it with 1st and 2nd index i.e rows containing values 'AAPL' and datetime greater than and equals to '2022-03-11 15:00:00' .
How can i achieve this ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
