Google News
logo
Pandas - Quiz(MCQ)
Which of the following method is used for transforming a SparseSeries indexed by a MultiIndex to a scipy.sparse.coo_matrix?
A)
Series.to_coo()
B)
SparseSeries.to_cooser()
C)
SparseSeries.to_coo()
D)
All of the above

Correct Answer :   SparseSeries.to_coo()


Explanation : Experimental api to transform between sparse pandas and scipy.sparse structures.

Advertisement