GUEST0 pt
クイズ・バイオインフォの森
5. 【python】前処理関連のメソッド【pandas】

5. 【python】前処理関連のメソッド【pandas】

目次

1. 分布の確認

表示する行数・列数の変更

セルに色をつける

shape()

describe()

value_counts()

転置

Text
df_table = df_table.T

dropna()

drop_duplicates()

Text
# 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()

Text
df_copy = df.copy()
広告を取得中...
5. 【python】前処理関連のメソッド【pandas】 | バイオインフォの森