how to read a specific unique string from a column in pandas dataframe code example
Example 1: get unique words from pandas dataframe
results = set()
df['text'].str.lower().str.split().apply(results.update)
$ set(['someone', 'ft.jgt', 'my', 'is', 'to', 'going', 'place', 'nickname'])
Example 2: unique entries in column pandas
import pandas as pd
pd.set_option('display.max_row', 1000)
pd.set_option('display.max_columns', 50)
data = {'name': ['Jason', 'Molly', 'Tina', 'Jake', 'Amy'],
'year': [2012, 2012, 2013, 2014, 2014],
'reports': [4, 24, 31, 2, 3]}
df = pd.DataFrame(data, index = ['Cochice', 'Pima', 'Santa Cruz', 'Maricopa', 'Yuma'])
df
df.name.unique()