Pandada buni quyidagicha qilish mumkin: df = pd.DataFrame{'x': [1, 1, 2, 2, 2], 'y': ['a', 'b', 'a', 'a', 'a', 'b'], 'z': ['c', 'b', 'c', 'c', 'c', 'c']}) # "z" ustunidagi qiymat "b" ustunidagi qiymat "a" ustunidagi qiymat bilan faqat satrlarni saqlaydigan niqob yaratish uchun df = df['z']!= 'b' # "df[mask]" ni ishlatgan holda ma'lumotlar ramkasini filtrlash df = df[mask] # "x" ustuni bo'yicha guruhlash = df.groupby" ((x') # "y" ustuni bo'yicha guruhlash = df.groupby" ((x
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence