simpleDict.items() if 'DDL' in key) File "<stdin>", line 1, in <module>>>> sqlQry= " ".join(value for key, value in simpleDict.items() if 'DDL' in key)
当value是一个字符串值列表时
我有这个df:John | ['0001','0002']我需要将附加列表中的每个值转换为链接:例如:John'attach'] = df['attach'].apply(lambda x: x if x is np.NaN else link_part1 + x + link_part2)TypeError:只能将str (不是"lis