I have a following problem in pandas. I have this dataframe:
import pandas as pd d1 = {\'Name\': [\'c\',\'c\',\'c\', \'a\', \'a\',\'b\',\'b\', \'z\', \'y\'], \'P