pySpark列表到数据帧

2024-09-26 22:45:13 发布

您现在位置:Python中文网/ 问答频道 /正文

下面的代码从其他数据帧的列列表中创建数据帧。调用由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: columnsto数据代码框架列表that错误

热门问题