The code snippet initializes a mask with True values for all entries first.
The second line of code then uses the remove_list indices to index mask and sets these values to False. In the last line of code self.data is indexed with mask and reassigned to data which will then contain all entries from self.data where mask was set to True.