I have data in the form of sets and i want convert it into 2D numpy array. Data is like
term = which contains the words
document_number= which has the doc number
tf-idf= which contain the tf-idf of each word with respect to doc in ordered manner
I want it should be in 2D numpy array like this
doc1 doc2 doc3....
term1 1 5 6
term2 0 4 1
term3 6 8 10
.
.
How should I implement it?
numpy.matrix?