|
Import numpy as np import pandas as pd
|
tarix | 10.04.2023 | ölçüsü | 1,12 Mb. | | #95783 |
| 1-lab
import numpy as np
import pandas as pd
df = pd.read_csv('ins.csv')
df=pd.DataFrame(df)
b=df
df.head()
df.describe()
shape=df.shape
shape
df.isnull().sum()
ism="Alibekova Sevinch"
foiz=(len(ism)+75)/100
thres=shape[0]*(0.7)
df=df.dropna(axis=1, thresh=thres)
df
thres=shape[1]*(0.55)
# 80% da qiymat chiqmadi 0 boldi shu uchun 55% uchun ko'rdim
df=df.dropna(axis=0, thresh=thres)
df
Dostları ilə paylaş: |
|
|