1

My code below creates a dataframe from lists of columns from other dataframes. I'm getting an error when calling a list that is produce by a set. How can I treat that set of list, in order to add those columns to my dataframe?

Error produce by +list(matchedList)

#extract columns that need to be conform 
datasetMatched = dataset.select(selectedColumns +list(matchedList))
#display(datasetMatched)
TypeError: 'list' object is not callable

1 Answer 1

1

It probably happens due to shadowing the builtin list function. Make sure you didn't define any variable named list in your code.

Sign up to request clarification or add additional context in comments.

1 Comment

good point. It also got fix after refreshing my cluster @Gabip

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.