The processing of the data is pandas, but it has not been learned and does not know whether there is a method call that is directly normalized to a column. Himself dealing things down. The feeling is still more troublesome.
After reading to the array using pandas, I want to have the ' monthlyincome ' column normalized, and the chestnuts on the web are normalized to the entire dataframe, because some of my data are categories and cannot be used:
ImportPandas as PDImportNumPy as NP#Loading Data#CVSDF= Pd.read_csv ("Train1.csv")#normalizeds = (df['Monthlyincome']-df['Monthlyincome'].min ())/(df['Monthlyincome'].max ()-df['Monthlyincome'].min ())#safely deleted if with Del is permanently deletedDF2= Df.drop (['Monthlyincome'],axis=1)#Insert the normalized column into the array, and at the very beginning 14 I inserted him into section 15lie.Df2.insert (14,'Monthlyincome', s)
Print(Df2.columns[13:15])
Pandas (Python) Data processing: Normalization of only one column of dataframe data