I would like to filter a dataframe based on last two decimal on particular column. So, the data is something like this:
[91] 22.6300 22.6300 22.6700 22.6200 22.6700 22.6200 22.6400 22.6600 22.6600 [100] 22.6600 22.6800 22.6800 22.6800 22.6800 22.6600 22.6700 22.7000 22.7000 [109] 22.7000 22.7200 22.6800 22.7000 22.6800 22.6900 22.7000 22.6975 22.7000 [118] 22.6900 22.6900 22.7000 22.6800 22.7200 22.7200 22.7200 22.7200 22.7400 [127] 22.7500 22.7500 22.7500 22.7500 22.7200 22.7528 22.7210 22.7500 22.7500 [136] 22.7210 22.7210 22.7402 22.7200 22.7300 22.7700 22.7500 22.8100 22.8100 [145] 22.8100 22.8100 22.8100 22.8100 22.8000 22.8000 22.8000 22.8000 22.7850 [154] 22.8000 22.7900 22.8000 22.8000 22.8000 22.8000 22.8000 22.8000 22.8011
Let's say the column name is PRICE in my_data dataframe. How can I filter based on the last decimal of the PRICE column?. The end goal is I want to get a dataframe with decimal ends with 0.0001 to 0.0010. For instance:
22.6975 22.7528 22.7210 22.7402 22.8011
Should be included to my filtered dataframe, because they end with 5, 8, 10, 2, and 1 respectively.
Thank you!