psychopy.org | Reference | Downloads | Github

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Hi this issue is from python for data science in machine learning concept , i have a two data frames one data frame contains float and int values another data frame contains scipy sparse matrices ,now i want to merge this two data frames by using scipy hstack
i tried like this
" hstack((train_df,tfidf_train_data))’’
Here tfidf_train_data is sparce matrices but i got error like below
“ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()”
can anyone help me out of this

That looks like a query for StackOverflow rather than the PsychoPy forum