snowflake.snowpark.Session.range¶
- Session.range(start: int, end: Optional[int] = None, step: int = 1) DataFrame[source]¶
Creates a new DataFrame from a range of numbers. The resulting DataFrame has single column named
ID, containing elements in a range fromstarttoend(exclusive) with the step valuestep.- Parameters:
start – The start of the range. If
endis not specified,startwill be used as the value ofend.end – The end of the range.
step – The step of the range.
Examples: