I have the following scenario.
import pandas as pd
d = {\'col1\': [1, 2, 3], \'col2\': [[\'apple\'], [], [\'romaine\', \'potatoes\']} df = pd.DataFrame(data=d)