Create dataframe using Pandas - Linear Regression

0 votes

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?

May 22 in Machine Learning by Archu
20 views

1 answer to this question.

0 votes

You can read excel files

df = pd.read_excel(...)

You can read single column using column number

X = df[0] 
Y = df[1] 
answered May 22 by Neha

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer

What is rolling linear regression?

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

answered May 23 in Machine Learning by Jinu
26 views
0 votes
1 answer
0 votes
1 answer

Changing Pandas data-frame to JSON type

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

answered May 22, 2018 in Data Analytics by anonymous
63 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer