-1

I would like to select next row when the condition is true.

In SQL, I would use:

FROM [dbo].[table1] where Num IN (select Num + 1 from table1$ where Status='start') 
eshirvana
  • 23,227
  • 3
  • 22
  • 38
ric
  • 1
  • Does this answer your question? [How do I select rows from a DataFrame based on column values?](https://stackoverflow.com/questions/17071871/how-do-i-select-rows-from-a-dataframe-based-on-column-values) – Henry Ecker Jun 14 '21 at 19:08

1 Answers1

0

To select rows where Status is equal to start:

selected_rows = df[df['Status'] == 'start]
user3483203
  • 50,081
  • 9
  • 65
  • 94
Nate Rush
  • 360
  • 2
  • 14