Checking the values in a list against Pandas DataFrame

Advertisements I have a Pandas DataFrame with a list of words and their associated emotions (each can have several emotions attached to it). Something like this: I have also extracted the tokens of a text, using Spacy, into a list. something like [‘study’, ‘Maths’, ‘easy’, ‘great’, ‘study’,…] In order to match the tokens in the… Read More Checking the values in a list against Pandas DataFrame

Loading Pandas Dataframe with skipped sentiment

Advertisements I have this dataset for sentiment analysis, loading the data with this code: url = ‘https://raw.githubusercontent.com/jdvelasq/datalabs/master/datasets/amazon_cells_labelled.tsv’ df = pd.read_csv(url, sep=’\t’, names=["Sentence", "Feeling"]) The issue is the DataFrame is getting lines with NaN, but It’s just part of the whole sentence. The Output, right now is like this: sentence feeling I do not like it.… Read More Loading Pandas Dataframe with skipped sentiment