May-30-2020, 09:24 AM
(This post was last modified: May-30-2020, 09:24 AM by donnertrud.)
Hi guys,
I got a dictionary with values ranging from 0.25 to -0.25. I am looking for a way, to automatically drop all keys that are either
0 < value < 0.1
or
0 > value > -0.1
so basically all keys' values between 0.1 and -0.1 should be dropped from the dict. Is there an easy way to do that?
I got a dictionary with values ranging from 0.25 to -0.25. I am looking for a way, to automatically drop all keys that are either
0 < value < 0.1
or
0 > value > -0.1
so basically all keys' values between 0.1 and -0.1 should be dropped from the dict. Is there an easy way to do that?