fruit containing repeated fruit names.memory_before to store the memory usage of the fruit column before conversion.fruit column to categorical type and store it back in the DataFrame.memory_after to store the memory usage of the fruit column after conversion.memory_before and memory_after.