hupili / python-for-data-and-media-communication-gitbook

An open source book on Python tailed for communication students with zero background
118 stars 62 forks source link

How to find the same string in different lists? #117

Closed CathyChang1996 closed 5 years ago

CathyChang1996 commented 6 years ago

Troubleshooting

Describe your environment

Describe your question

I have a column in a dataset called 'location', and every row of it is a whole string, I want to transform it into a 'list' and try to find out if there is any overlap strings in different rows.

How to get this work?😄🤔️

The dataset link is as follows: https://github.com/CathyChang1996/CathyChang1996.github.io/blob/master/review_mafengwo.csv

hupili commented 6 years ago

Quick notes here: