I had the same issue when importing data from a.csv file using pandas.
I extracted the data, which gave me a list of lists.
I merged the list of lists into a list and it worked.
The code is below :
a = df.loc[df['a'] == 0, ['a']].values
a= list(itertools.chain.from_iterable(a))