小编Dij*_*sen的帖子

Check if status changed in comparison to yesterday if yes display it in a new Dataframe

Every day I run my code and its test if it was successful or fail. I put it in a database and the database looks like this:

         Date      Name Color
0  2019-07-18  Project1  blue
1  2019-07-18  Project2  blue
2  2019-07-18  Project3   red
3  2019-07-19  Project1  blue
4  2019-07-19  Project2   red
5  2019-07-19  Project3   red
Run Code Online (Sandbox Code Playgroud)

Now I want to display the only rows where it failed in comparison to yesterday

What I have now when I run my code is this …

python dataframe pandas

4
推荐指数
1
解决办法
88
查看次数

标签 统计

dataframe ×1

pandas ×1

python ×1