0

I have my data organized as a dictionary of tuple-of-tuples keys giving the row and column names, and scalar values like the following:

dict{ 
       ( (row-name-tuple), (column-name-tuple) ) : scalar-value,  
       ( (row-name-tuple), (column-name-tuple) ) : scalar-value
} 

, Where the scalar values are the dataframe's "data cells"

Example: for these two dict entries:

dict= {
 ( ('240', None, '0', 'a'), ('LC', 'eugenides')): 3,
 ( ('130', '0',  '1', 'a'), ('LC', 'eugenides')): 0,
}

dataframe structure

Even through the column indexes may be seen as leveled indexes, the do not necessarily need to. How do I do it?

0 Answers0