What is the difference between np.tile and np.repeat?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how NumPy's tile and repeat functions differ when replicating array data. Tests whether you know which one copies the whole array and which copies each element, how both behave on 2D arrays with and without an axis, and when broadcasting is the better choice.