I have changed dic 1 to dic 2 to find the common vales between the the same keys. it is cleaned and I removed one number at the end in dic 1. I wrote the function as follows to find the common features that is called common.
My final output should looks like as follows keeping the original format of common values, but I dont know how to implement it:
from functools import reduce
dic1 = {"df1":["age_0" , "nnn220","abc70"], "df2":["age_1" "a221","abc71"]}
dic2 = {"df1":["age","nnn22","abc7"], "df2":["age", "a22","abc7"]}
dataframe_list = list(dic2.values())
common = reduce(lambda a, b: set(a) & set(b), dataframe_list)
common = {'AGE',
'abc7'}
final_output :{"df1":["age0", "abc70"], "df2":["age1","abc71"]}