Issue
This Content is from Stack Overflow. Question asked by Walid
I hope you’re doing well,
I was actually doing this expression :
<class 'numpy.ndarray'>
np.array(w[0] + w[1]*np.array(X[:,0]) + w[2]*np.array(X[:,1]))
Now I have a Panda array and I wanna do it the same way but without converting it to numpy, so what is the equivalent of this expression in pandas
<class 'pandas.core.frame.DataFrame'>
Thank you very much in advance
Solution
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.