snowpark-python API reference
246 public APIs from snowpark-python (snowflakedb/snowpark-python) — 79 classes, 78 functions, 89 methods. Signatures extracted by static analysis of the actual source.
Repository: snowflakedb/snowpark-python
| Kind | Count |
|---|---|
| Classes | 79 |
| Functions | 78 |
| Methods | 89 |
API list
func
src.snowflake.snowpark._functions.scalar_functions.as_boolean(variant:ColumnOrName, _emit_ast:bool=True) -> ColumnCasts a VARIANT value to a boolean.
func
src.snowflake.snowpark._functions.scalar_functions.cot(expr:ColumnOrName, _emit_ast:bool=True) -> ColumnComputes the cotangent of the input column.
func
src.snowflake.snowpark._functions.scalar_functions.h3_get_resolution(cell_id:ColumnOrName, _emit_ast:bool=True) -> ColumnReturns the resolution of an H3 cell ID.
func
src.snowflake.snowpark._functions.scalar_functions.h3_is_valid_cell(cell_id:ColumnOrName, _emit_ast:bool=True) -> ColumnChecks if the given H3 cell ID is valid.
func
src.snowflake.snowpark._functions.scalar_functions.hex_decode_binary(input_expr:ColumnOrName, _emit_ast:bool=True) -> ColumnDecodes a hex-encoded string to binary data.
func
src.snowflake.snowpark._functions.scalar_functions.localtime(_emit_ast:bool=True) -> ColumnReturns the current time for the system.
func
src.snowflake.snowpark._functions.scalar_functions.map_size(map_col:ColumnOrName, _emit_ast:bool=True) -> ColumnReturns the size of the input MAP.
func
src.snowflake.snowpark._functions.scalar_functions.mod(expr1:ColumnOrName, expr2:ColumnOrName, _emit_ast:bool=True) -> ColumnReturns the remainder of expr1 divided by expr2.
func
src.snowflake.snowpark._functions.scalar_functions.space(n:ColumnOrName, _emit_ast:bool=True) -> ColumnReturns a string consisting of n space characters.
func
src.snowflake.snowpark._functions.scalar_functions.st_pointn(geography_or_geometry_expression:ColumnOrName, index:ColumnOrName, _emit_ast:bool=True) -> ColumnReturns the Nth point in a LINESTRING.
func
src.snowflake.snowpark._functions.scalar_functions.systimestamp(_emit_ast:bool=True) -> ColumnReturns the current timestamp for the system.
func
src.snowflake.snowpark._functions.scalar_functions.try_hex_decode_binary(input_expr:ColumnOrName, _emit_ast:bool=True) -> ColumnDecodes a hex-encoded string to binary data.
class
src.snowflake.snowpark._internal.analyzer.select_statement.ColumnStateDictStore the column states of all columns.
class
src.snowflake.snowpark._internal.analyzer.select_statement.SelectSQLQuery from a SQL.
method
src.snowflake.snowpark._internal.analyzer.select_statement.SelectStatement.select(cols:List[Expression]) -> 'SelectStatement'Build a new query.
method
src.snowflake.snowpark._internal.analyzer.select_statement.Selectable.add_df_ast_id(ast_id:int) -> NoneMethod to add a df ast id to the selectable.
method
src.snowflake.snowpark._internal.analyzer.select_statement.Selectable.uuid() -> strReturns the UUID for this Selectable plan.
class
src.snowflake.snowpark._internal.ast.batch.AstBatchA batch of AST statements.
method
src.snowflake.snowpark._internal.ast.batch.AstBatch.bind(symbol:Optional[str]=None) -> proto.BindCreates a new Bind statement.
method
src.snowflake.snowpark._internal.ast.batch.AstBatch.flush(target:Optional[proto.Bind]=None) -> SerializedBatchTies off a batch and starts a new one.
func
src.snowflake.snowpark._internal.ast.utils.ClearTempTables(message:proto.Request) -> NoneRemoves temp table when passing pandas data.
func
src.snowflake.snowpark._internal.ast.utils.clear_line_no_in_ast(ast:Any) -> NoneClear any 'src' information in the statement body.
func
src.snowflake.snowpark._internal.ast.utils.create_ast_for_column(name1:str, name2:Optional[str], fn_name=None) -> proto.ExprHelper function to create Ast for Snowpark Column.
func
src.snowflake.snowpark._internal.ast.utils.debug_check_missing_ast(ast, session, container) -> NoneDebug check for missing AST.
func
src.snowflake.snowpark._internal.ast.utils.set_builtin_fn_alias(ast:proto.Expr, alias:str) -> NoneSet the alias for a builtin function call.
func
src.snowflake.snowpark._internal.ast.utils.snowpark_expression_to_ast(expr:Expression) -> proto.ExprConverts Snowpark expression expr to protobuf ast.
func
src.snowflake.snowpark._internal.code_generation.get_lambda_code_text(code_text:str) -> strExtract the lambda expression from code text.
func
src.snowflake.snowpark._internal.code_generation.is_lambda(func:FunctionType) -> boolCheck whether the target function is a lambda function.
func
src.snowflake.snowpark._internal.compiler.cte_utils.encode_node_id_with_query(node:'TreeNode') -> strEncode a for the given TreeNode.
func
src.snowflake.snowpark._internal.compiler.cte_utils.is_select_from_file_node(node:'TreeNode') -> boolCheck if the current node is a SelectFromFileNode.
func
src.snowflake.snowpark._internal.data_source.utils.get_jdbc_dbms(jdbc_url:str) -> strExtract the DBMS name from a JDBC connection URL.
func
src.snowflake.snowpark._internal.packaging_utils.get_signature(packages:List[str]) -> strCreate unique signature for a list of package names.
func
src.snowflake.snowpark._internal.type_utils.extract_bracket_content(type_str:str, keyword:str) -> strGiven a string that starts with e.g.
func
src.snowflake.snowpark._internal.type_utils.infer_type(obj:Any) -> DataTypeInfer the DataType from obj
func
src.snowflake.snowpark._internal.type_utils.int_size_to_type(size:int) -> Type[DataType]Return the Catalyst datatype from the size of integers.
func
src.snowflake.snowpark._internal.type_utils.is_likely_struct(s:str) -> boolReturn True if there's a top-level colon, comma, or space.
class
src.snowflake.snowpark._internal.utils.TimeTravelConfigConfiguration for time travel operations.
method
src.snowflake.snowpark._internal.utils.TimeTravelConfig.generate_sql_clause() -> strGenerates the time travel SQL clause.
func
src.snowflake.snowpark._internal.utils.get_udf_upload_prefix(udf_name:str) -> strGet the valid stage prefix when uploading a UDF.
func
src.snowflake.snowpark._internal.utils.is_ast_enabled() -> boolGets the value of the ast_enabled feature flag.
func
src.snowflake.snowpark._internal.utils.parse_positional_args_to_list(*inputs:Any) -> ListConvert the positional arguments to a list.
func
src.snowflake.snowpark._internal.utils.random_number() -> intGet a random unsigned integer.
func
src.snowflake.snowpark._internal.utils.remove_comments(sql_query:str, uuids:List[str]) -> strRemoves comments associated with child uuids in a query
func
src.snowflake.snowpark._internal.utils.set_ast_state(source:AstFlagSource, enabled:bool) -> NoneSets the value of the ast_enabled feature flag.
func
src.snowflake.snowpark._internal.utils.split_path(path:str) -> Tuple[str, str]Split a file path into directory and file name.
func
src.snowflake.snowpark._internal.xml_reader.get_text(element:ET.Element) -> Optional[str]Do not strip the text
method
src.snowflake.snowpark.async_job.AsyncJob.cancel() -> NoneCancels the query associated with this instance.
method
src.snowflake.snowpark.async_job.AsyncJob.query() -> Optional[str]The SQL text of of the executed query.
method
src.snowflake.snowpark.async_job.AsyncJob.status() -> strReturns the current query status as a string.
method
src.snowflake.snowpark.catalog.Catalog.database_exists(database:Union[str, Database]) -> boolCheck if the given database exists.
method
src.snowflake.snowpark.catalog.Catalog.drop_database(database:Union[str, Database]) -> NoneDrop the given database.
method
src.snowflake.snowpark.catalog.Catalog.drop_schema(schema:Union[str, Schema], *database:Optional[Union[str, Database]]=None) -> NoneDrop the given schema in the given database.
method
src.snowflake.snowpark.catalog.Catalog.get_current_database() -> Optional[str]Get the current database.
method
src.snowflake.snowpark.catalog.Catalog.get_current_schema() -> Optional[str]Get the current schema.
method
src.snowflake.snowpark.catalog.Catalog.get_database(database:str) -> DatabaseName of the database to get
method
src.snowflake.snowpark.catalog.Catalog.get_schema(schema:str, *database:Optional[Union[str, Database]]=None) -> SchemaName of the schema to get.
method
src.snowflake.snowpark.catalog.Catalog.list_databases(*pattern:Optional[str]=None, *like:Optional[str]=None) -> List[Database]List databases in the current session.
method
src.snowflake.snowpark.catalog.Catalog.list_schemas(*database:Optional[Union[str, Database]]=None, *pattern:Optional[str]=None, *like:Optional[str]=None) -> List[Schema]List schemas in the current session.
method
src.snowflake.snowpark.catalog.Catalog.set_current_database(database:Union[str, Database]) -> NoneSet the current default database for the session.
method
src.snowflake.snowpark.catalog.Catalog.set_current_schema(schema:Union[str, Schema]) -> NoneSet the current default schema for the session.
class
src.snowflake.snowpark.column.ColumnRepresents a column or an expression in a :class:`DataFrame`.
method
src.snowflake.snowpark.column.Column.alias(alias:str, _emit_ast:bool=True) -> 'Column'Returns a new renamed Column.
method
src.snowflake.snowpark.column.Column.as_(alias:str, _emit_ast:bool=True) -> 'Column'Returns a new renamed Column.
method
src.snowflake.snowpark.column.Column.between(lower_bound:Union[ColumnOrLiteral, Expression], upper_bound:Union[ColumnOrLiteral, Expression], _emit_ast:bool=True) -> 'Column'Between lower bound and upper bound.
method
src.snowflake.snowpark.column.Column.bitand(other:Union[ColumnOrLiteral, Expression], _emit_ast:bool=True) -> 'Column'Bitwise and.
method
src.snowflake.snowpark.column.Column.bitor(other:Union[ColumnOrLiteral, Expression], _emit_ast:bool=True) -> 'Column'Bitwise or.
method
src.snowflake.snowpark.column.Column.bitxor(other:Union[ColumnOrLiteral, Expression], _emit_ast:bool=True) -> 'Column'Bitwise xor.
method
src.snowflake.snowpark.column.Column.contains(string:ColumnOrName, _emit_ast:bool=True) -> 'Column'Returns true if the column contains `string` for each row.
method
src.snowflake.snowpark.column.Column.endswith(other:ColumnOrLiteralStr, _emit_ast:bool=True) -> 'Column'Returns true if this Column ends with another string.
method
src.snowflake.snowpark.column.Column.equal_nan(_emit_ast:bool=True) -> 'Column'Is NaN.
method
src.snowflake.snowpark.column.Column.equal_null(other:'Column', _emit_ast:bool=True) -> 'Column'Equal to.
method
src.snowflake.snowpark.column.Column.is_not_null(_emit_ast:bool=True) -> 'Column'Is not null.
method
src.snowflake.snowpark.column.Column.is_null(_emit_ast:bool=True) -> 'Column'Is null.
method
src.snowflake.snowpark.column.Column.name(alias:str, variant:typing.Literal['as_', 'alias', 'name']='name', _emit_ast:bool=True) -> 'Column'Returns a new renamed Column.
method
src.snowflake.snowpark.column.Column.startswith(other:ColumnOrLiteralStr, _emit_ast:bool=True) -> 'Column'Returns true if this Column starts with another string.
method
src.snowflake.snowpark.column.Column.substr(start_pos:Union['Column', int], length:Union['Column', int], _emit_ast:bool=True) -> 'Column'Returns a substring of this string column.
method
src.snowflake.snowpark.dataframe.DataFrame.agg(*_emit_ast:bool=True, *exprs:Union[Column, Tuple[ColumnOrName, str], Dict[str, str]]) -> 'DataFrame'Aggregate the data in the DataFrame.
method
src.snowflake.snowpark.dataframe.DataFrame.col(col_name:str, _emit_ast:bool=True) -> ColumnReturns a reference to a column in the DataFrame.
method
src.snowflake.snowpark.dataframe.DataFrame.columns() -> List[str]Returns all column names as a list.
method
src.snowflake.snowpark.dataframe.DataFrame.get_execution_profile(output_file:Optional[str]=None, verbose:bool=False) -> NoneGet the execution profile of the dataframe.
method
src.snowflake.snowpark.dataframe.DataFrame.print_schema(level:Optional[int]=None) -> NonePrints the schema of a dataframe in tree format.
class
src.snowflake.snowpark.exceptions.SnowparkClientExceptionBase Snowpark exception class
class
src.snowflake.snowpark.exceptions.SnowparkDataframeExceptionException for dataframe related errors.
class
src.snowflake.snowpark.exceptions.SnowparkDataframeReaderExceptionException for dataframe reader errors.
class
src.snowflake.snowpark.exceptions.SnowparkGeneralExceptionException for general exceptions.
class
src.snowflake.snowpark.exceptions.SnowparkPandasExceptionException for pandas related errors.
class
src.snowflake.snowpark.exceptions.SnowparkPlanExceptionException for plan analysis errors.
class
src.snowflake.snowpark.exceptions.SnowparkServerExceptionException for miscellaneous related errors.
class
src.snowflake.snowpark.exceptions.SnowparkSessionExceptionException for any session related errors.
class
src.snowflake.snowpark.exceptions.SnowparkTableExceptionException for table related errors.
class
src.snowflake.snowpark.file_operation.FileOperationProvides methods for working on files in a stage.
method
src.snowflake.snowpark.file_operation.FileOperation.list(stage_location:str, *pattern:Optional[str]=None, *statement_params:Optional[Dict[str, str]]=None) -> List[ListResult]Returns a list of files from a stage.
method
src.snowflake.snowpark.file_operation.FileOperation.remove(stage_location:str, *pattern:Optional[str]=None, *statement_params:Optional[Dict[str, str]]=None) -> List[str]Removes files from a stage.
class
src.snowflake.snowpark.lineage.LineageDirectionDirections for tracing the lineage.
func
src.snowflake.snowpark.mock._plan.compare_intervals(lower:Optional[Union[Interval, int]], upper:Optional[Union[Interval, int]]) -> boolReturns true if lower >= upper.
func
src.snowflake.snowpark.mock._plan.negate_interval(interval:Interval) -> IntervalNegates each value in an interval.
class
src.snowflake.snowpark.mock._select_statement.MockSelectStatementThe main logic plan to be used by a DataFrame.
method
src.snowflake.snowpark.mock._select_statement.MockSelectStatement.select(cols:List[Expression]) -> 'SelectStatement'Build a new query.
func
src.snowflake.snowpark.modin.config.__main__.export_config_help(filename:str) -> NoneExport all configs help messages to the CSV file.
func
src.snowflake.snowpark.modin.config.__main__.print_config_help() -> NonePrint configs help messages.
class
src.snowflake.snowpark.modin.config.envvars.DaskThreadsPerWorkerNumber of threads per Dask worker.
class
src.snowflake.snowpark.modin.config.envvars.DoUseCalciteWhether to use Calcite for HDK queries execution.
class
src.snowflake.snowpark.modin.config.envvars.EngineDistribution engine to run queries by.
class
src.snowflake.snowpark.modin.config.envvars.EnvironmentVariableBase class for environment variables-based configuration.
class
src.snowflake.snowpark.modin.config.envvars.GithubCISet to true when running Modin in GitHub CI.
class
src.snowflake.snowpark.modin.config.envvars.IsExperimentalWhether to Turn on experimental features.
class
src.snowflake.snowpark.modin.config.envvars.LazyExecutionLazy execution mode.
class
src.snowflake.snowpark.modin.config.envvars.LogFileSizeMax size of logs (in MBs) to store per Modin job.
method
src.snowflake.snowpark.modin.config.envvars.LogFileSize.get() -> intGet ``LogFileSize`` with extra checks.
method
src.snowflake.snowpark.modin.config.envvars.LogFileSize.put(value:int) -> NoneSet ``LogFileSize`` with extra checks.
class
src.snowflake.snowpark.modin.config.envvars.LogModeSet ``LogMode`` value if users want to opt-in.
method
src.snowflake.snowpark.modin.config.envvars.LogMode.disable() -> NoneDisable logging feature.
method
src.snowflake.snowpark.modin.config.envvars.LogMode.enable() -> NoneEnable all logging levels.
method
src.snowflake.snowpark.modin.config.envvars.LogMode.enable_api_only() -> NoneEnable API level logging.
class
src.snowflake.snowpark.modin.config.envvars.PersistentPickleWhether serialization should be persistent.
class
src.snowflake.snowpark.modin.config.envvars.ProgressBarWhether or not to show the progress bar.
method
src.snowflake.snowpark.modin.config.envvars.ProgressBar.disable() -> NoneDisable ``ProgressBar`` feature.
method
src.snowflake.snowpark.modin.config.envvars.ProgressBar.enable() -> NoneEnable ``ProgressBar`` feature.
class
src.snowflake.snowpark.modin.config.envvars.RayRedisPasswordWhat password to use for connecting to Redis.
class
src.snowflake.snowpark.modin.config.envvars.ReadSqlEngineEngine to run `read_sql`.
class
src.snowflake.snowpark.modin.config.envvars.StorageFormatEngine to run on a single node of distribution.
class
src.snowflake.snowpark.modin.config.envvars.TestDatasetSizeDataset size for running some tests.
class
src.snowflake.snowpark.modin.config.envvars.TestReadFromPostgresSet to true to test reading from Postgres.
class
src.snowflake.snowpark.modin.config.envvars.TestReadFromSqlServerSet to true to test reading from SQL server.
class
src.snowflake.snowpark.modin.config.pubsub.DeprecationDescriptorDescribe deprecated parameter.
class
src.snowflake.snowpark.modin.config.pubsub.ParameterBase class describing interface for configuration entities.
method
src.snowflake.snowpark.modin.config.pubsub.Parameter.add_option(choice:Any) -> AnyAdd a new choice for the parameter.
method
src.snowflake.snowpark.modin.config.pubsub.Parameter.get() -> AnyGet config value.
method
src.snowflake.snowpark.modin.config.pubsub.Parameter.get_help() -> strGenerate user-presentable help for the option.
method
src.snowflake.snowpark.modin.config.pubsub.Parameter.get_value_source() -> ValueSourceGet value source of the config.
method
src.snowflake.snowpark.modin.config.pubsub.Parameter.put(value:Any) -> NoneSet config value.
method
src.snowflake.snowpark.modin.config.pubsub.Parameter.subscribe(callback:Callable) -> NoneAdd `callback` to the `_subs` list and then execute it.
class
src.snowflake.snowpark.modin.config.pubsub.TypeDescriptorClass for config data manipulating of exact type.
func
src.snowflake.snowpark.modin.plugin._internal.align_utils.align_axis_0_left(frame:InternalFrame, other_frame:InternalFrame, join:str, dummy_row_pos_mode:bool) -> InternalFrameGets the left align results.
func
src.snowflake.snowpark.modin.plugin._internal.align_utils.align_axis_0_right(frame:InternalFrame, other_frame:InternalFrame, join:str, dummy_row_pos_mode:bool) -> InternalFrameGets the right align results.
func
src.snowflake.snowpark.modin.plugin._internal.apply_utils.clear_session_udf_and_udtf_caches() -> NoneClear all cached UDF and UDTFs.
func
src.snowflake.snowpark.modin.plugin._internal.binary_op_utils.BinaryOp.snake_to_camel(snake_str:str) -> strConverts a snake case string to camel case.
func
src.snowflake.snowpark.modin.plugin._internal.cut_utils.compute_bin_indices(values_frame:InternalFrame, cuts_frame:InternalFrame, n_cuts:int, dummy_row_pos_mode:bool, right:bool=True) -> InternalFrameGiven a frame of cuts, i.e.
class
src.snowflake.snowpark.modin.plugin._internal.indexing_utils.LocSetColInfoLoc setitem information context for columns
func
src.snowflake.snowpark.modin.plugin._internal.io_utils.get_non_pandas_kwargs(kwargs:Any) -> AnyReturns a new dict without pandas keyword arguments.
func
src.snowflake.snowpark.modin.plugin._internal.io_utils.is_local_filepath(filepath:str) -> boolReturns whether a filepath is local.
method
src.snowflake.snowpark.modin.plugin._internal.snowpark_pandas_types.SnowparkPandasType.type_match(value:Any) -> boolReturn True if the value's type matches self.
func
src.snowflake.snowpark.modin.plugin._internal.telemetry.error_to_telemetry_type(e:Exception) -> strConvert Error to Telemetry Type string Ex.
func
src.snowflake.snowpark.modin.plugin._internal.telemetry.try_add_telemetry_to_attribute(attr_name:str, attr_value:Any) -> AnyAttempts to add telemetry to an attribute.
func
src.snowflake.snowpark.modin.plugin._internal.timestamp_utils.is_snowflake_timestamp_format_valid(sf_format:str) -> boolCheck if a timestamp format valid.
func
src.snowflake.snowpark.modin.plugin._internal.timestamp_utils.tz_localize_column(column:Column, tz:Union[str, dt.tzinfo]) -> ColumnLocalize tz-naive to tz-aware.
func
src.snowflake.snowpark.modin.plugin._internal.type_utils.infer_object_type(obj:Any) -> DataTypeInfer the snowpark DataType from obj
func
src.snowflake.snowpark.modin.plugin._internal.utils.count_rows(df:OrderedDataFrame) -> intReturns the number of rows of a Snowpark DataFrame.
func
src.snowflake.snowpark.modin.plugin._internal.utils.handle_if_exists_for_to_snowflake(if_exists:str, name:Union[str, Iterable[str]]) -> NoneHandle if_exists for to_snowflake.
func
src.snowflake.snowpark.modin.plugin._internal.utils.pandas_lit(value:Any, datatype:Optional[DataType]=None) -> ColumnReturns a Snowpark column for a literal value.
func
src.snowflake.snowpark.modin.plugin._internal.utils.rindex(lst:list, value:int) -> intFind the last index in the list of item value.
func
src.snowflake.snowpark.modin.plugin._internal.utils.try_convert_to_simple_slice(s:Any) -> Optional[slice]Try converting to simple slice.
class
src.snowflake.snowpark.modin.plugin._internal.window_utils.WindowFunctionType of window function.
method
src.snowflake.snowpark.modin.plugin.docstrings.dataframe.DataFrame.dropna()Remove missing values.
method
src.snowflake.snowpark.modin.plugin.docstrings.dataframe.DataFrame.isna()Detect missing values.
method
src.snowflake.snowpark.modin.plugin.docstrings.datetime_index.DatetimeIndex.normalize()Convert times to midnight.
method
src.snowflake.snowpark.modin.plugin.docstrings.datetime_index.DatetimeIndex.tz()Return the timezone.
method
src.snowflake.snowpark.modin.plugin.docstrings.index.Index.append()Append a collection of Index options together.
method
src.snowflake.snowpark.modin.plugin.docstrings.index.Index.array()return the array of values
method
src.snowflake.snowpark.modin.plugin.docstrings.index.Index.isna()Detect missing values.
method
src.snowflake.snowpark.modin.plugin.docstrings.index.Index.name()Get the index name.
method
src.snowflake.snowpark.modin.plugin.docstrings.index.Index.nlevels()Number of levels.
method
src.snowflake.snowpark.modin.plugin.docstrings.index.Index.set_names()Set Index name.
method
src.snowflake.snowpark.modin.plugin.docstrings.series.Series.isna()Detect missing values.
method
src.snowflake.snowpark.modin.plugin.docstrings.series.Series.keys()Return alias for index.
method
src.snowflake.snowpark.modin.plugin.docstrings.series.Series.plot()Make plot of Series.
method
src.snowflake.snowpark.modin.plugin.docstrings.series.Series.sort_values()Sort by the values.
method
src.snowflake.snowpark.modin.plugin.docstrings.series_utils.StringMethods.len()Get the length of a string.
func
src.snowflake.snowpark.modin.plugin.extensions.indexing_overrides.boolean_mask_to_numeric(indexer:Any) -> np.ndarrayConvert boolean mask to numeric indices.
func
src.snowflake.snowpark.modin.plugin.extensions.indexing_overrides.is_2d_array(x:Any) -> boolCheck that argument is a 2D array.
func
src.snowflake.snowpark.modin.plugin.extensions.indexing_overrides.is_boolean_array(x:Any) -> boolCheck that argument is an array of bool.
func
src.snowflake.snowpark.modin.plugin.extensions.indexing_overrides.is_range_like(obj:Any) -> boolCheck if the object is range-like.
func
src.snowflake.snowpark.modin.plugin.extensions.series_overrides.memory_usage(self, index:bool=True, deep:bool=False) -> intReturn zero bytes for memory_usage
func
src.snowflake.snowpark.modin.plugin.extensions.series_overrides.to_list(self) -> listReturn a list of the values.
func
src.snowflake.snowpark.modin.plugin.extensions.series_overrides.unique(self) -> ArrayLikeReturn unique values of Series object.
func
src.snowflake.snowpark.modin.plugin.extensions.utils.add_cache_result_docstring(func:Fn) -> FnDecorator to add docstring to cache_result method.
class
src.snowflake.snowpark.modin.plugin.utils.exceptions.SnowparkPandasExceptionBase Snowpark pandas exception class.
func
src.snowflake.snowpark.modin.utils.align_indents(source:str, target:str) -> strAlign indents of two strings.
func
src.snowflake.snowpark.modin.utils.extract_sections(text:str) -> list[dict[str, str]]split docstring into sections.
func
src.snowflake.snowpark.modin.utils.hashable(obj:bool) -> boolReturn whether the `obj` is hashable.
func
src.snowflake.snowpark.modin.utils.import_optional_dependency(name:str, message:str) -> types.ModuleTypeImport an optional dependecy.
func
src.snowflake.snowpark.modin.utils.instancer(_class:Callable[[], T]) -> TCreate a dummy instance each time this is imported.
func
src.snowflake.snowpark.modin.utils.is_property(key:Any) -> boolCheck whether `key` is a property.
func
src.snowflake.snowpark.modin.utils.translate_pandas_default(arg:Any) -> AnyReturns None if `arg` is no_default, otherwise `arg`.
func
src.snowflake.snowpark.modin.utils.wrap_into_list(*skipna:bool=True, *args:Any) -> list[Any]Wrap a sequence of passed values in a flattened list.
class
src.snowflake.snowpark.row.RowRepresents a row in :class:`DataFrame`.
method
src.snowflake.snowpark.row.Row.as_dict(recursive:bool=False) -> DictConvert to a dict if this row object has both keys and values.
func
src.snowflake.snowpark.secrets.get_cloud_provider_token(secret_name:str) -> CloudProviderTokenGet a cloud provider token secret from Snowflake.
func
src.snowflake.snowpark.secrets.get_generic_secret_string(secret_name:str) -> strGet a generic token string from Snowflake.
func
src.snowflake.snowpark.secrets.get_oauth_access_token(secret_name:str) -> strGet an OAuth2 access token from Snowflake.
func
src.snowflake.snowpark.secrets.get_secret_type(secret_name:str) -> strGet the type of a secret from Snowflake.
func
src.snowflake.snowpark.secrets.get_username_password(secret_name:str) -> UsernamePasswordGet a username and password secret from Snowflake.
method
src.snowflake.snowpark.session.Session.append_query_tag(tag:str, separator:str=',') -> NoneAppends a tag to the current query tag.
method
src.snowflake.snowpark.session.Session.begin_transaction(name:Optional[str]=None, _emit_ast:bool=True) -> NoneBegins a new transaction in the current session.
method
src.snowflake.snowpark.session.Session.cancel_all() -> NoneCancel all action methods that are running currently.
method
src.snowflake.snowpark.session.Session.close() -> NoneClose this session.
method
src.snowflake.snowpark.session.Session.commit(_emit_ast:bool=True) -> NoneCommits an open transaction in the current session.
method
src.snowflake.snowpark.session.Session.create_async_job(query_id:str) -> AsyncJobCreates an :class:`AsyncJob` from a query ID.
method
src.snowflake.snowpark.session.Session.get_active_session() -> Optional['Session']Gets the active session if one is created.
method
src.snowflake.snowpark.session.Session.query_tag() -> Optional[str]The query tag for this session.
method
src.snowflake.snowpark.session.Session.range(start:int, end:Optional[int]=None, step:int=1, _emit_ast:bool=True) -> DataFrameCreates a new DataFrame from a range of numbers.
method
src.snowflake.snowpark.session.Session.rollback(_emit_ast:bool=True) -> NoneRolls back an open transaction in the current session.
method
src.snowflake.snowpark.session.Session.update_query_tag(tag:dict) -> NoneUpdates a query tag that is a json encoded string.
method
src.snowflake.snowpark.session.Session.use_database(database:str) -> NoneSpecifies the active/current database for the session.
method
src.snowflake.snowpark.session.Session.use_role(role:str) -> NoneSpecifies the active/current primary role for the session.
method
src.snowflake.snowpark.session.Session.use_schema(schema:str) -> NoneSpecifies the active/current schema for the session.
method
src.snowflake.snowpark.session.Session.use_warehouse(warehouse:str) -> NoneSpecifies the active/current warehouse for the session.
class
src.snowflake.snowpark.table.DeleteResultResult of deleting rows in a :class:`Table`.
class
src.snowflake.snowpark.table.TableRepresents a lazily-evaluated Table.
method
src.snowflake.snowpark.table.Table.drop_table(_emit_ast:bool=True) -> NoneDrops the table from the Snowflake database.
class
src.snowflake.snowpark.table.UpdateResultResult of updating rows in a :class:`Table`.
class
src.snowflake.snowpark.table.WhenMatchedClauseA matched clause for the :meth:`Table.merge` action.
class
src.snowflake.snowpark.table_function.TableFunctionCallRepresents a table function call.
class
src.snowflake.snowpark.types.ArrayTypeArray data type.
class
src.snowflake.snowpark.types.BinaryTypeBinary data type.
class
src.snowflake.snowpark.types.BooleanTypeBoolean data type.
class
src.snowflake.snowpark.types.ByteTypeByte data type.
class
src.snowflake.snowpark.types.ColumnIdentifierRepresents a column identifier.
class
src.snowflake.snowpark.types.DataTypeThe base class of Snowpark data types.
class
src.snowflake.snowpark.types.DateTypeDate data type.
class
src.snowflake.snowpark.types.DayTimeIntervalTypeDayTimeIntervalType data type.
class
src.snowflake.snowpark.types.DecFloatTypeDecFloat data type.
class
src.snowflake.snowpark.types.DecimalTypeDecimal data type.
class
src.snowflake.snowpark.types.DoubleTypeDouble data type.
class
src.snowflake.snowpark.types.FileTypeFile data type.
class
src.snowflake.snowpark.types.FloatTypeFloat data type.
class
src.snowflake.snowpark.types.GeographyTypeGeography data type.
class
src.snowflake.snowpark.types.GeometryTypeGeometry data type.
class
src.snowflake.snowpark.types.IntegerTypeInteger data type.
class
src.snowflake.snowpark.types.LongTypeLong integer data type.
class
src.snowflake.snowpark.types.MapTypeMap data type.
class
src.snowflake.snowpark.types.NullTypeRepresents a null type.
class
src.snowflake.snowpark.types.PandasDataFrameTypepandas DataFrame data type.
class
src.snowflake.snowpark.types.PandasSeriesTypepandas Series data type.
class
src.snowflake.snowpark.types.ShortTypeShort integer data type.
class
src.snowflake.snowpark.types.StringTypeString data type.
class
src.snowflake.snowpark.types.StructFieldRepresents the content of :class:`StructField`.
class
src.snowflake.snowpark.types.StructTypeRepresents a table schema or structured column.
class
src.snowflake.snowpark.types.TimeTypeTime data type.
class
src.snowflake.snowpark.types.TimestampTypeTimestamp data type.
class
src.snowflake.snowpark.types.VariantTypeVariant data type.
class
src.snowflake.snowpark.types.VectorTypeVector data type.
class
src.snowflake.snowpark.types.YearMonthIntervalTypeYearMonthIntervalType data type.
class
src.snowflake.snowpark.udf_profiler.UDFProfilerSet up profiler to receive profiles of UDFs.
class
src.snowflake.snowpark.window.WindowContains functions to form :class:`WindowSpec`.
class
src.snowflake.snowpark.window.WindowSpecRepresents a window frame clause.
About this data
These signatures were extracted from the public source of snowflakedb/snowpark-python
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.