Count Unique Python Df Preprocessing In Image