If it is for calculating TFIDF score using TfidfTransformer, yu can get the IDF by tfidf.idf_. Then the sparse array name, say 'a', a.toarray().
toarray returns an ndarray; todense returns a matrix. If you want a matrix, use todense; otherwise, use toarray.