At first, I’m not an IT, just doing some codes for my project so I really appreciate any helps from you guys.

I’m working on Jupyter Notebook with pandas.
I have values for df[‘muy_s’], df[‘muy_lbc’], df[‘Regressed Vc’]
Their formulas related to each other.

The question is: I want to match values from df[‘muy_s’] and df[‘muy_lbc’] by changing values of df[‘Regressed Vc’] which means the error = (df[‘muy_s’]-df[‘muy_lbc’])^2 = 0 or minimum.

Just like what “Solver” in Excel does.

I don’t know how to code it in Jupyter Notebook and hope anyone could help me with this.
Thank you so much.

New contributor

elvira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.