Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result= "%0.2f" % your_calc_result
- dict = {'course1': [15,12],
- 'course2': [9,6],
- 'course3': [12,15],
- 'course4': [15,3],
- 'course5': [15,9],
- 'course6': [9,12]}
- df = pd.DataFrame(dict)
- normal_load = 3.0
- df['FirstPart_GPA'] = 0
- for i in range(len(df.index)):
- result="%0.2f" % (float(df.loc[i].sum())/(normal_load*5.00))
- print(result)
- 5.00
- 3.80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement