1.

Point out the correct statement.(a) All of the standard pandas data structures have a to_sparse method(b) Any sparse object can be converted back to the standard dense form by calling to_dense(c) The sparse objects exist for memory efficiency reasons(d) All of the mentionedI had been asked this question in examination.My doubt stems from Pandas topic in chapter Data Analysis with Python of Data Science

Answer»

Correct CHOICE is (d) All of the mentioned

Easy explanation - The to_sparse METHOD TAKES a KIND argument and a fill_value.



Discussion

No Comment Found

Related InterviewSolutions