I want to write a quick script that will run through a csv file with two columns and provide me with rows in which the values ββin column B switch from one value to another:
eg:
dataframe:
will tell me that the change happened between line 2 and line 3. I know how to use these values ββfor loops, but I was hoping there was a more pythonic approach to solving this problem.
python pandas search csv dataframe
badrobit
source share