How do I calculate specific values?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I calculate specific values??

i want to add '60' to 'only negative number' in DateFlame.

23rd Aug 2018, 2:21 AM
Haruto
Haruto - avatar
1 Answer
+ 1
I think I understand your question. Have you tried something like below? for each in dataframe: if each < 0: each + 60
4th Sep 2018, 1:44 AM
Steven M
Steven M - avatar