I have got a huge data set in a CSV file of different models of cars sold by countries.image of CSV
As you can see, in the column "Country" we have got entries like: "Fiji, Japan, India" "Fiji, India" "Japan, India" "Japan" "Fiji, Japan"
I want to delete all rows of cars that are not sold in Japan. Therefore deleting rows like "Fiji, India", "India" and "Fiji" and leaving the remaining rows with Japan.
How do I go about doing this in Python?
Additionally, I want to code it in such a way that if in the future the database has entries like : Japan, USA USA Mexico Mexico, Japan
Then it can automatically sort this out and delete cars that are not sold in Japan.
I am extremely new to python and I am learning to code by myself. Any help would be apricated.
Thanks in advance!