text_html_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

wine_data = pd.read_csv('../input/uci-wine-data/wine-clustering.csv')

def normalize_data(data):
    data_normalized = data.copy()
    for col in data.columns:
        print(col, 'max:', data[col].max(), 'min:', data[col].min())
        data_normalized[col] = (data_normalized[col] - data_normalized[col].min()) / (data_normalized[col].max() - data_normalized[col].min())
    return data_normalized
wine_data_normalized = normalize_data(wine_data)
wine_data_normalized.head()