Need a simple example of calculating RMSE with Pandas DataFrame. Providing there is function that returns in cycle true and predicted value:
def fun (data):
Question 1 This depends on the format that data is in. And I'd expect you already have your true values, so this function is just a pass through.
Question 2
With pandas ((df.p - df.x) ** 2).mean() ** .5
pandas
((df.p - df.x) ** 2).mean() ** .5
With numpy (np.diff(df.values) ** 2).mean() ** .5
numpy
(np.diff(df.values) ** 2).mean() ** .5