Joining a list of tuples within a pandas dataframe
问题 I want to join a list of tuples within a dataframe. I have tried several methods of doing this within the dataframe with join and with lambda import pandas as pd from nltk import word_tokenize, pos_tag, pos_tag_sents data = {'Categories': ['animal','plant','object'], 'Type': ['tree','dog','rock'], 'Comment': ['The NYC tree is very big', 'NY The cat from the UK is small', 'The rock was found in LA.']} def posTag(data): data = pd.DataFrame(data) comments = data['Comment'].tolist()