CBSE Class 12 Informatics Practices Question 57 of 167

Python Pandas — I — Question 22

Back to all questions
22
Question

Question 22

If a DataFrame is created using a 2D dictionary, then the indexes/row labels are formed from ............... .

  1. dictionary's values
  2. inner dictionary's keys
  3. outer dictionary's keys
  4. none of these
Answer

inner dictionary's keys

Reason — When a DataFrame is created using a 2D dictionary, then the indexes/row labels are formed from keys of inner dictionaries.