I have a column that has a range of positive and negative integers ('updated_time') and if the integer is negative I would like to add 24 to it but am having some issues. I've tried the following with no success
block_subset['updated_time'] = block_subset['updated_time'].apply(lambda x : (x + 24) if x >
0 else x)
Any help would be so much appreciated!