How do you handle memory-mapped files in NumPy for large datasets, and what are the benefits?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to work with NumPy arrays larger than RAM using memory-mapped files through np.memmap or np.load with mmap_mode. Tests understanding of access modes, flushing writes, chunked processing, and how memory order and OS page caching affect performance.