find unique elements in pandas and their connection with other column

Solutions on MaxInterview for find unique elements in pandas and their connection with other column by the best coders in the world

showing results for - "find unique elements in pandas and their connection with other column"
Yuna
21 Feb 2019
1df = pd.DataFrame({'author':['a', 'a', 'b'], 'subreddit':['sr1', 'sr2', 'sr2']})
2
3>>> df
4  author subreddit
50      a       sr1
61      a       sr2
72      b       sr2
8...
9
similar questions