How map a list value within a pandas dataframe column and using a lambda function

前端 未结 0 1461
挽巷
挽巷 2021-01-30 04:44

I have the following scenario.

import pandas as pd

d = {\'col1\': [1, 2, 3], \'col2\': [[\'apple\'], [], [\'romaine\', \'potatoes\']} df = pd.DataFrame(data=d)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题