ValueError: Cannot set a frame with no defined index and a value that cannot be converted to a Series

You have a column of ragged lists. Your only option is to assign a list of lists, and not an array of lists (which is what .value gives).

class_df['phone'] = group['phone'].tolist()

Leave a Comment