
5. 【python】前処理関連のメソッド【pandas】
目次
- 分布の確認
- head()
- 表示する行数・列数の変更
- セルに色をつける
- shape()
- describe()
- value_counts()
- 転置
- dropna()
- drop_duplicates()
- fillna()
- astype()
- copy()
1. 分布の確認
head()
表示する行数・列数の変更
セルに色をつける
shape()
describe()
value_counts()
転置
df_table = df_table.Tdropna()
drop_duplicates()
# statistics
compounds = df_compounds.inchi_key.drop_duplicates().tolist()
compounds_proteins = df_compounds.uniprot_id.drop_duplicates().tolist()
print(f'n_compounds: {len(compounds)}')
print(f'n_proteins: {len(compounds_proteins)}')fillna()
astype()
copy()
df_copy = df.copy()広告を取得中...
