📜  如何规范化数据以在 python pandas 中达到相同的范围 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:09.942000             🧑  作者: Mango

代码示例1
# Assuming same lines from your example
cols_to_norm = ['Age','Height']
survey_data[cols_to_norm] = survey_data[cols_to_norm].apply(lambda x: (x - x.min()) / (x.max() - x.min()))