drop rows with certain values pandas

df.drop(df.index[df['myvar'] == 'specific_name'], inplace = True)

Here is what the above code is Doing:
1. We’re creating a new column called ‘myvar’ and assigning it the value of ‘specific_name’
2. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
3. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
4. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
5. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
6. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
7. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
8. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
9. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
10. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
11. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
12. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
13. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
14. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
15. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
16. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
17. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
18. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
19. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
20. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
21. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
22. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
23. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
24. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
25. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
26. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
27. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
28. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
29. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
30. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
31. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
32. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
33. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
34. We’re using the .drop() method to drop the row where the value of ‘myvar’ is ‘specific_name’
35. We’re using the .drop() method to drop the row where the value of ‘my