What are the different ways to create a DataFrame in Pandas?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks for the ways to build a pandas DataFrame from Python objects, NumPy arrays, Series, files and databases. Tests how each constructor handles columns, index alignment and missing values, and how to avoid slow row-by-row construction.