I am using pandas to read a csv file and return me a list of the values, and it gives me a list like this(e.g):
[['TSLA'], ['AAPL']] and so on.
I need to read through this list but python complains (ValueError: The truth value of a Series is ambiguous.)
Now, it works fine if I manually type a list this way: ['TSLA', 'AAPL']
So I am trying to find a way to convert my list from [[''],[''],[''],['']] to ['','','',''].
Any leads? I have been searching workarounds and so far I got nowhere. I hope my explanation is clear, as I am still a beginner in python.
Cheers