import pandas as pd
# DataFrame yaratish
data = {
'Ism': ['Ali', 'Vali', 'Javlon', 'Aziz', 'Saida', 'Aziza', 'Zilola', 'Akmal', 'Karim', 'Sodiq', 'Mubina', 'Shoira', 'Durdona', 'Malika', 'Samira'],
'Yosh': [23, 30, 22, 25, 28, 26, 27, 34, 37, 41, 33, 18, 29, 36, 44],
'Shahar': ['Toshkent', 'Samarqand', 'Buxoro', 'Toshkent', 'Andijon', 'Farg‘ona', 'Namangan', 'Jizzax', 'Qashqadaryo', 'Navoiy', 'Xorazm', 'Surxandaryo', 'Farg‘ona', 'Andijon', 'Toshkent']
}
# DataFrameni yaratish
df = pd.DataFrame(data)
# Yosh 25dan katta va shahar 'Farg‘ona' bo'lganlarni filtrlash
filtered_df = df[(df['Yosh'] > 25) & (df['Shahar'] == 'Farg‘ona')]
# Natijani chop etish
print(filtered_df)
aW1wb3J0IHBhbmRhcyBhcyBwZAoKIyBEYXRhRnJhbWUgeWFyYXRpc2gKZGF0YSA9IHsKICAgICdJc20nOiBbJ0FsaScsICdWYWxpJywgJ0phdmxvbicsICdBeml6JywgJ1NhaWRhJywgJ0F6aXphJywgJ1ppbG9sYScsICdBa21hbCcsICdLYXJpbScsICdTb2RpcScsICdNdWJpbmEnLCAnU2hvaXJhJywgJ0R1cmRvbmEnLCAnTWFsaWthJywgJ1NhbWlyYSddLAogICAgJ1lvc2gnOiBbMjMsIDMwLCAyMiwgMjUsIDI4LCAyNiwgMjcsIDM0LCAzNywgNDEsIDMzLCAxOCwgMjksIDM2LCA0NF0sCiAgICAnU2hhaGFyJzogWydUb3Noa2VudCcsICdTYW1hcnFhbmQnLCAnQnV4b3JvJywgJ1Rvc2hrZW50JywgJ0FuZGlqb24nLCAnRmFyZ+KAmG9uYScsICdOYW1hbmdhbicsICdKaXp6YXgnLCAnUWFzaHFhZGFyeW8nLCAnTmF2b2l5JywgJ1hvcmF6bScsICdTdXJ4YW5kYXJ5bycsICdGYXJn4oCYb25hJywgJ0FuZGlqb24nLCAnVG9zaGtlbnQnXQp9CgojIERhdGFGcmFtZW5pIHlhcmF0aXNoCmRmID0gcGQuRGF0YUZyYW1lKGRhdGEpCgojIFlvc2ggMjVkYW4ga2F0dGEgdmEgc2hhaGFyICdGYXJn4oCYb25hJyBibydsZ2FubGFybmkgZmlsdHJsYXNoCmZpbHRlcmVkX2RmID0gZGZbKGRmWydZb3NoJ10gPiAyNSkgJiAoZGZbJ1NoYWhhciddID09ICdGYXJn4oCYb25hJyldCgojIE5hdGlqYW5pIGNob3AgZXRpc2gKcHJpbnQoZmlsdGVyZWRfZGYpCg==