pandas_operation how to extract subset in pandas how to use apply in pandas to_dict apply_to_dict:Convert two columns Pandas data frame to dictionary of list with first column as keys