Q. How does dataframe object specify indexes to its data rows?


Answer :-

If the indexes are not specified with the DataFrame(), then these are generated from the input data in an intuitive fashion.
For example, from the keys of dictionary (in case of column labels) or by using np.range(n) in the case of row labels, where n corresponds to the number of rows.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post