How do I make a pandas dataframe that can add a new row for comapring metrics?

I have been working on the practice exercise on linear regression, and trying different methods to improve the rmse and r2 score.
I wanted to know, how do I make a pandas dataframe that can add a new row, everytime I print a new metric, so that I can compare the performance of each method?

1 Like

An easy approach provided by Coach Manish :
https://colab.research.google.com/drive/1t6KLjL7Xriu3SVl1jkjqR_a2htZMq0oJ?usp=sharing

1 Like