fork download
  1. import pandas as pd
  2. #DataFrame yaratish
  3. data={'Ism':['Ali','Vali','Javlon','Aziz','Saida','Aziza','Zilola'],
  4. 'Yosh':[23,30,22,25,28,26,27],
  5. 'Shahar':['Toshkent','Samarqand','Buxoro','Toshkent','Andijon','Fargā€˜ona','Namangan']}
  6. df=pd.DataFrame(data)
  7. #Yosh 25dan katta bo'lganlarni filtrlash
  8. filtred_df=df[df['Yosh']>25]
  9. print(filtred_df)
Success #stdin #stdout 0.31s 60380KB
stdin
Standard input is empty
stdout
      Ism     Shahar  Yosh
1    Vali  Samarqand    30
4   Saida    Andijon    28
5   Aziza   Farg‘ona    26
6  Zilola   Namangan    27