下面的代码从其他数据帧的列列表中创建数据帧。调用由set
生成的列表时出错。为了将这些列添加到我的数据框架中,我如何处理这组列表
由+list(matchedList)
生成的错误
#extract columns that need to be conform
datasetMatched = dataset.select(selectedColumns +list(matchedList))
#display(datasetMatched)
TypeError: 'list' object is not callable
Tags:
这可能是因为隐藏了内置的
list
函数。确保没有在代码中定义任何名为list
的变量相关问题 更多 >
编程相关推荐