import pandas as pd
# DataFrame yaratish
data = {
'Ism': ['Ali', 'Vali', 'Javlon', 'Aziz', 'Saida', 'Aziza', 'Zilola', 'Olim', 'Shahzod', 'Jasur', 'Ravshan', 'Nuriddin', 'Xurshid', 'Nodir'],
'Yosh': [23, 30, 22, 25, 28, 26, 27, 40, 42, 41, 43, 46, 48, 50],
'Shahar': ['Toshkent', 'Samarqand', 'Buxoro', 'Toshkent', 'Andijon', 'Farg‘ona', 'Namangan', 'Toshkent', 'Samarqand', 'Buxoro', 'Toshkent', 'Andijon', 'Farg‘ona', 'Namangan']
}
df = pd.DataFrame(data)
# Yosh 25dan katta bo'lgan va shahar Farg‘ona bo'lganlarni filtrlash
filtred_df = df[(df['Yosh'] > 25) & (df['Shahar'] == 'Farg‘ona')]
print(filtred_df)
aW1wb3J0IHBhbmRhcyBhcyBwZAoKIyBEYXRhRnJhbWUgeWFyYXRpc2gKZGF0YSA9IHsKICAgICdJc20nOiBbJ0FsaScsICdWYWxpJywgJ0phdmxvbicsICdBeml6JywgJ1NhaWRhJywgJ0F6aXphJywgJ1ppbG9sYScsICdPbGltJywgJ1NoYWh6b2QnLCAnSmFzdXInLCAnUmF2c2hhbicsICdOdXJpZGRpbicsICdYdXJzaGlkJywgJ05vZGlyJ10sCiAgICAnWW9zaCc6IFsyMywgMzAsIDIyLCAyNSwgMjgsIDI2LCAyNywgNDAsIDQyLCA0MSwgNDMsIDQ2LCA0OCwgNTBdLAogICAgJ1NoYWhhcic6IFsnVG9zaGtlbnQnLCAnU2FtYXJxYW5kJywgJ0J1eG9ybycsICdUb3Noa2VudCcsICdBbmRpam9uJywgJ0ZhcmfigJhvbmEnLCAnTmFtYW5nYW4nLCAnVG9zaGtlbnQnLCAnU2FtYXJxYW5kJywgJ0J1eG9ybycsICdUb3Noa2VudCcsICdBbmRpam9uJywgJ0ZhcmfigJhvbmEnLCAnTmFtYW5nYW4nXQp9CgpkZiA9IHBkLkRhdGFGcmFtZShkYXRhKQoKIyBZb3NoIDI1ZGFuIGthdHRhIGJvJ2xnYW4gdmEgc2hhaGFyIEZhcmfigJhvbmEgYm8nbGdhbmxhcm5pIGZpbHRybGFzaApmaWx0cmVkX2RmID0gZGZbKGRmWydZb3NoJ10gPiAyNSkgJiAoZGZbJ1NoYWhhciddID09ICdGYXJn4oCYb25hJyldCgpwcmludChmaWx0cmVkX2RmKQoK