How can you convert a DataFrame to a NumPy array?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to turn a pandas DataFrame into a NumPy array. Tests whether you know the recommended conversion method and its legacy alternative, what happens to the index and column labels, and how mixed column dtypes are handled in a single array.