I have many dictionaries with same keys and I would like to save their values in a common dataframe.
Here two dictionaries.
row2POS = {0: 101232831, 1: 43067616,}
row2CHROM = {0: '3', 1: '17'}
And my empty dataframe
column_names = ['CHROM','POS']
df_stage1 = pd.DataFrame(columns = column_names)
My desire output
df_stage1
CHROM POS
0 3 101232831
1 17 43067616
When I faced this I though that could be easy bu I can figure out how to do this and I have not found this after some search