Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python machine learning scale

import pandas
from sklearn import linear_model
from sklearn.preprocessing import StandardScaler
scale = StandardScaler()

df = pandas.read_csv("cars2.csv")

X = df[['Weight', 'Volume']]

scaledX = scale.fit_transform(X)

print(scaledX)
Comment

PREVIOUS NEXT
Code Example
Python :: django pagination rest framework 
Python :: python dict sortieren 
Python :: reverse function python 
Python :: create login system in python 
Python :: select rows in python 
Python :: how to add space in st.write streamlit 
Python :: python send sigint to subprocess 
Python :: distance matrix gogle map python 
Python :: convert nan to string pandas 
Python :: how to host python flask web application 
Python :: python for android 
Python :: python sleep 
Python :: how to check how many digits string has in python 
Python :: basic flask app 
Python :: python list of list to list of string 
Python :: selenium.common.exceptions.TimeoutException: Message: 
Python :: how to access http page in pythion 
Python :: python list of dictionaries 
Python :: replace nan using fillna 
Python :: task timed out after 3.00 seconds aws lambda python 
Python :: ConfusionMatrixDisplay size 
Python :: use proxy to connect smtp python 
Python :: jupyter notebook GET 500 
Python :: python check if input() gives error 
Python :: get vowels from string python 
Python :: executing curl commands in python 
Python :: tkinter maximise window 
Python :: highlight null/nan values in pandas table 
Python :: convert str to datetime 
Python :: save image to file from URL 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =