47315/create-dataframe-using-pandas-linear-regression

I have an excel sheet that I'm using as my dataset input to my Linear Regression Fit Command using sklearn. How do I create the dataframe using panda? Also, how do I give the inputs?

You can read excel files

df = pd.read_excel(...)

You can read single column using column number

X = df[0] Y = df[1]

Hi @Dipti, you could try something like ...READ MORE

Yes, you can do this using statsmodels: import ...READ MORE

Rolling regression is the analysis of changing ...READ MORE

Hey! Your array shapes seem inconsistent. Try ...READ MORE

Hey @Vivek, Try something like this: >>> from ...READ MORE

Use the following code: from scipy import stats slope, ...READ MORE

abc.to_json(orient='records') This command will give you the desired ...READ MORE

key error. I love python READ MORE

Try something like this: df.values array([[nan, 0.2, nan], ...READ MORE

LassoLars is a lasso model implemented using ...READ MORE

OR

Already have an account? Sign in.