Working with a dictionary of dataframes, each key is an integer 0, ..., 999, and each value is a dataframe like this:
A B
1 10010001 17
2 10020001 5
3 10020002 11
4 10020003 2
5 10030001 86
...
I need to iterate through the entire dictionary, and to put together in a new dataframe all lines that have the 3rd and 4th digit in column A equals to 02. In my example, only lines 2, 3, and 4 would form the new dataframe. All values of column A are strings.
What could be the most efficient way of doing this within pandas?
ndifferent dataframes, but at the end of this task there will be just one "selected" dataframe.