Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. result= "%0.2f" % your_calc_result
  2.  
  3. dict = {'course1': [15,12],
  4. 'course2': [9,6],
  5. 'course3': [12,15],
  6. 'course4': [15,3],
  7. 'course5': [15,9],
  8. 'course6': [9,12]}
  9. df = pd.DataFrame(dict)
  10. normal_load = 3.0
  11. df['FirstPart_GPA'] = 0
  12. for i in range(len(df.index)):
  13. result="%0.2f" % (float(df.loc[i].sum())/(normal_load*5.00))
  14. print(result)
  15.  
  16. 5.00
  17. 3.80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement