how to print 1 to 1000 in panda code example
Example: Create a DataFrame containing elements in a range
# Create a DataFrame containing elements in a range
spark.range(1, 7, 2).collect()
# [Row(id=1), Row(id=3), Row(id=5)]
spark.range(3).collect()
#[Row(id=0), Row(id=1), Row(id=2)]