python数据处理——获得pandas dataframe中字符串里的数字

for i in df.columns:
    df[i] = df[i].str.extract('(\d+)') 

 

你可能感兴趣的:(python数据处理)