1.

Point out the wrong statement.(a) A DataFrame is like a fixed-size dict in that you can get and set values by index label(b) Series can be be passed into most NumPy methods expecting an ndarray(c) A key difference between Series and ndarray is that operations between Series automatically align the data based on label(d) None of the mentionedI got this question in an interview for job.My question is taken from Pandas Data Structure in chapter Data Analysis with Python of Data Science

Answer»

Right answer is (a) A DATAFRAME is like a fixed-size DICT in that you can get and set values by INDEX LABEL

Easy explanation - A Series is like a fixed-size dict in that you can get and set values by index label.



Discussion

No Comment Found

Related InterviewSolutions