Sure, I have to say, that I'm stucked just at the start now I'm able to get only whole sentences, and their occurences.
df = pd.read_csv('C:/Users/Adam/School/6th semester/project/dataset.csv') df['text'].value_counts() df_test = df.query('text == "test sentence"')
<class 'pandas.core.frame.DataFrame'> RangeIndex: 2827 entries, 0 to 2826 Data columns (total 2 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 File 2827 non-null object 1 text 2827 non-null object 3 views 2827 non-null int64