pandas
all_columns = list(food_info.columns.values) #the first two columns don‘t need to be normalized all_columns = all_columns[2:len(all_columns)] for column in all_columns: food_info[column] = food_info[column] / food_info[column].max()
时间: 2024-10-08 09:46:48