Thursday, March 31, 2022

Skip some values in array and continue from the value given

Skipp_Test.py

 data = ['tab1', 'tab2', 'tab3', 'tab4', 'tab5', 'tab6', 'tab7']

skip_table = True
for d in data:
if skip_table and d != 'tab3':
continue
skip_table = False
print(d)

No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...