0

I have a read_sql call inside a for loop, which takes a lot of time to return a value sometimes. Is it possible to skip the loop when it is taking more than 5 mins to execute read_sql?


for i in range(columns):
    value=pd.read_sql() # skip this statement when it takes more than 5 mins to return
    # other operation
geertjanvdk
  • 3,440
  • 24
  • 26

0 Answers0