livised

Untitled

Nov 9th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import pandas as pd
  2. exp = [['happiness', 57.456 , 62.344431, 0]]
  3. columns = ['metrics','before_test','after_test','absolute_difference']
  4.  
  5. metrics = pd.DataFrame(data=exp,columns=columns)
  6. metrics['absolute_difference'] = metrics['after_test'] - metrics['before_test']
  7.  
  8. print(metrics)
Advertisement
Add Comment
Please, Sign In to add comment