Look at Panda for way of grouping tile by patient and sampling a number, or other datafrmae that are more rapid than raw python
Look at Panda for way of grouping tile by patient and sampling a number, or other datafrmae that are more rapid than raw python