Dataset Card for "Magicoder-Evol-Instruct-110K-python"
from datasets import load_dataset
Load your dataset
dataset = load_dataset("pxyyy/Magicoder-Evol-Instruct-110K", split="train") # Replace with your dataset and split
Define a filter function
def contains_python(entry):
for c in entry["messages"]:
if "python" in c['content'].lower():
return True
# return "python" in entry["messages"].lower() # Replace 'column_name' with the column to search