Skip to content
Permalink
f8944e4b75
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
9 lines (7 sloc) 223 Bytes
#Multiple Regression Code =
x = df_full[['Trips 1-25 Miles', 'Trips 25-100 Miles']]
y = df['Number of Trips 10-25']
model = LinearRegression()
model.fit(x, y)
r_sq = model.score(x, y)
print(f"R-squared: {r_sq}")