I have a data frame as shown below
A_Name B_Detail Value_B Value_C Value_D ......
0 AA X1 1.2 0.5 -1.3 ......
1 BB Y1 0.76 -0.7 0.8 ......
2 CC Z1 0.7 -1.3 2.5 ......
3 DD L1 0.9 -0.5 0.4 ......
4 EE M1 1.3 1.8 -1.3 ......
5 FF N1 0.7 -0.8 0.9 ......
6 GG K1 -2.4 -1.9 2.1 ......
This is just a sample data frame, I can have n columns such as (Value_A, Value_B, Value_C, ........... Value_N)
Now I want to filter out all rows where the absolute value of all columns (Value_A, Value_B, Value_C, ....) is less than 1.
If you have a limited number of columns, you can filter the data by simply placing the “and” condition on the columns in the dataframe, but I cannot figure out what to do in this case.
I do not know how many such columns will be, the only thing I know is that such columns will have the prefix "Value".
In the above case, the output should be similar to
A_Name B_Detail Value_B Value_C Value_D ......
1 BB Y1 0.76 -0.7 0.8 ......
3 DD L1 0.9 -0.5 0.4 ......
5 FF N1 0.7 -0.8 0.9 ......