Which methods trigger an action that evaluates a DataFrame?
Snowpark DataFrames are lazily evaluated until an action sends their SQL to the server. DataFrame.collect() evaluates the DataFrame and returns its rows, while DataFrame.show() evaluates it and prints rows. random_split(), select(), and col() only construct derived DataFrame or column expressions.
DataFrame.collect()
DataFrame.show()
random_split()
select()
col()
Community Discussion