Python Forum
Looking for solution in Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Looking for solution in Python (/thread-21464.html)



Looking for solution in Python - ankitasharma111 - Oct-01-2019

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


RE: Looking for solution in Python - ichabod801 - Oct-01-2019

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.