Returns a list of boolean values comparing the strings of a list in Pandas
I want to add a new column "y" for True and False in my framework. It will return the true value. If the next row is greater than the previous row of one column. For example, if I have a column named "X"
X y
1
2 True
3 True
2 False
How do I do this without a loop. How do I solve this problem with the first line y being empty?
+3
source to share