import random
import numpy as np
import numpy as np
import random as rng
import pandas as pd

data_array = np.array(pd.read_csv("iris.txt", header=None))  # Reads from file
np.set_printoptions(formatter={'float': '{: 0.2f}'.format})  # formats to 5 decimal places
np.random.seed()

class data_management():

    def normalization(self):
        for i in range(4):
            xmax=max(data_array[:,i])
            xmin=min(data_array[:,i])
            data_array[:,i]=(data_array[:,i]-xmin)/(xmax-xmin)

DM=data_management()
DM.normalization()




