I have DataFrame like this:
product_id dt products_qty stock_qty
0 8225 2017-10-16 12.000 13.000
1 8280 2017-10-16 0.000 11.000
2 8225 2017-10-17 0.000 41.000
3 8280 2017-10-17 7.134 64.698
4 8225 2017-10-18 1.000 8.000
5 8280 2017-10-18 2.728 27.417
6 8225 2017-10-19 0.000 41.000
7 8280 2017-10-19 1.000 -2.000
8 8225 2017-10-20 2.000 -7.000
9 8280 2017-10-20 1.000 25.000
10 8225 2017-10-21 0.000 41.000
11 8280 2017-10-21 0.000 11.000
I have to get all rows where products_qty
equals 0 and stock_qty
values are the same. So in this case I shoul get DataFrame like this:
product_id dt products_qty stock_qty
0 8280 2017-10-16 0.000 11.000
2 8225 2017-10-17 0.000 41.000
6 8225 2017-10-19 0.000 41.000
10 8225 2017-10-21 0.000 41.000
11 8280 2017-10-21 0.000 11.000
Thanks for help!