Python Forum

Full Version: Looking for solution in Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Looking for solution in Python

Dataset 1:

Variable Source
Apple Fruit
Cherry Fruit
Banana Fruit
Peas Vegetable
Mango Fruit
Tamato Vegetable

I want to make the function where on the basis of Source I can delete that row

for eg:
Source=Vegetable

O/p:
Variable Source
Apple Fruit
Cherry Fruit
Banana Fruit
Mango Fruit
What have you tried? We're not big on writing code for people here, but we would be happy to help you fix your code when you run into problems. When you do run into problems, please post your code in Python tags, and clearly explain the problem you are having, including the full text of any errors.