a="4735" f"qw{a}" # qw4735 f"{a}qw{a}" # 4735qw4735
df_list=[] for str in ["sog", "cog",'dt','dist']: str_tmp=tmp_table[str].iloc[:,[1,5,2]] str_tmp.columns = [ f"{str}_mean", f"{str}_50%", f"{str}_std" ] df_list.append(str_tmp) print(df_list)