What is the difference between np.arange, np.linspace, and np.logspace, and when would you use each?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how np.arange, np.linspace and np.logspace differ in the way they build a numeric sequence and when each one is the right choice. Tests knowledge of step versus count, endpoint behavior, floating-point surprises with float steps, and log-scale grids for sweeps.