How do you create a DataFrame from various data sources such as dicts, lists, and arrays?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to build a pandas DataFrame from a dict of columns, a list of lists, a list of dicts and a NumPy array. It tests whether you know how each input maps to rows, columns and labels, and how pandas handles missing keys, unequal lengths and column dtypes.