I am doing some webscraping (getting the plot of books on goodreads). I have this info in a tsv file. When i get that tsv file into a dataframe it looks like i loose the best part of my string. How can i access the whole string? Cheers
Advertisement
Answer
The problem is that data['Plot']
is returning a Series with 1 element (not the element itself). Much like having a list with one element you need to tell pandas to return the first element in that series.
To do this you can write:
data['plot'].iloc[0]