Snowpark Session¶
Session
  | 
Establishes a connection with a Snowflake database and provides methods for creating DataFrames and accessing objects for working with files in stages.  | 
Methods
  | 
Registers a remote file in stage or a local file as an import of a user-defined function (UDF).  | 
  | 
Adds third-party packages as dependencies of a user-defined function (UDF).  | 
  | 
Adds a requirement file that contains a list of packages as dependencies of a user-defined function (UDF).  | 
  | 
Calls a stored procedure by name.  | 
Cancel all action methods that are running currently.  | 
|
Clears all files in a stage or local files from the imports of a user-defined function (UDF).  | 
|
Clears all third-party packages of a user-defined function (UDF).  | 
|
Close this session.  | 
|
  | 
Creates a new DataFrame containing the specified values from the local data.  | 
  | 
Creates an   | 
  | 
Creates a new DataFrame containing the specified values from the local data.  | 
  | 
Creates a new   | 
  | 
Creates a new DataFrame using the Generator table function.  | 
Returns the name of the current account for the Python connector session attached to this session.  | 
|
Returns the name of the current database for the Python connector session attached to this session.  | 
|
Returns the name of the primary role in use for the current session.  | 
|
Returns the name of the current schema for the Python connector session attached to this session.  | 
|
Returns the name of the warehouse in use for the current session.  | 
|
Returns the fully qualified name of the current schema for the session.  | 
|
Returns a list of imports added for user defined functions (UDFs).  | 
|
Returns a   | 
|
Returns the name of the temporary stage created by the Snowpark library for uploading and storing temporary artifacts for this session.  | 
|
Create an instance of   | 
|
  | 
Creates a new DataFrame from a range of numbers.  | 
  | 
Removes a file in stage or local file from the imports of a user-defined function (UDF).  | 
  | 
Removes a third-party package from the dependency list of a user-defined function (UDF).  | 
  | 
Returns a new DataFrame representing the results of a SQL query.  | 
  | 
Returns a Table that points the specified table.  | 
  | 
Creates a new DataFrame from the given snowflake SQL table function.  | 
  | 
Specifies the active/current database for the session.  | 
  | 
Specifies the active/current primary role for the session.  | 
  | 
Specifies the active/current schema for the session.  | 
  | 
Specifies the active/current secondary roles for the session.  | 
  | 
Specifies the active/current warehouse for the session.  | 
  | 
Writes a pandas DataFrame to a table in Snowflake and returns a Snowpark   | 
Attributes
Returns a builder you can use to set configuration properties and create a   | 
|
Returns a   | 
|
The query tag for this session.  | 
|
Returns a   | 
|
Returns a   | 
|
Returns whether telemetry is enabled.  | 
|
Returns a   | 
|
Returns a   |