What is the method to convert a Python list of strings to a pd.Series object?
pd.Series
(pandas Series objects can be converted to list using tolist() method--but how to do the reverse conversion?)
tolist()
I understand that your list is in fact a list of lists
import pandas as pd thelist = [ ['sentence 1'], ['sentence 2'], ['sentence 3'] ] df = pd.Series( (v[0] for v in thelist) )
1.4m articles
1.4m replys
5 comments
57.0k users