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']
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter