image_output_1.png
import pandas as pd

df = pd.read_csv('../input/colorectal-cancer-patients/crc.txt', sep='\t')
df

df_gene = pd.read_csv('../input/colorectal-cancer-patients/crc_ge.txt', sep='\t')

df_gene = df_gene.transpose()

col_names = df_gene.iloc[0].tolist()
df_gene.columns = col_names
df_gene = df_gene.drop(axis=0, index='ID_REF')

df_gene.insert(loc=0, column='ID_REF', value=df_gene.index)
df_gene = df_gene.reset_index(drop=True)
features_gene_num = df_gene.columns.tolist()[1:]
df_gene[features_gene_num] = df_gene[features_gene_num].astype(float)

df_gene[features_gene_num].describe()