I’m trying to make a data frame of NaN with set labels and indexes. I can’t find in the documentation how to do this.
Here is what I would do in Pandas:
label = ["1T", "1G", "1C", "2T", "2G", "2A"]
rescue_left = pd.DataFrame(columns=label,index=label)
And I’d get something that looks like this:
I was thinking I could make the matrix and then set the column labels as a vector, but I’m not sure how to set the row indexes.
Thanks for any help.
Jim