Informatics Practices

If a dataframe is created using a 2D dictionary, then the column labels are formed from …………… .

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

Python Pandas

3 Likes

Answer

outer dictionary's keys

Reason — When a DataFrame is created using a 2D dictionary, then the column labels are formed from keys of outer dictionaries.

Answered By

1 Like


Related Questions