If df is the pandas DataFrame containing the columns fct and true, the new column MSE can be created as follows:
main.py86 chars5 lines
This computes the square of the difference between the fct and true columns for each row, and stores the result in the new MSE column.
gistlibby LogSnag