DataFrame - loc

PHOTO EMBED

Fri Apr 08 2022 14:37:51 GMT+0000 (UTC)

Saved by @vivienfeng11

De_data['EU_hours']=[get_outhour(De_data.loc[idx,'res_start'],De_data.loc[idx,'res_end']) for idx in range(len(De_data))]
De_data['IN_hours']=De_data['booked_hours']-De_data['EU_hours']
content_copyCOPY

http://localhost:8888/notebooks/Z4B invoice - Barts-0408.ipynb