-
Notifications
You must be signed in to change notification settings - Fork 0
Packages & Modules
Note
The module contains several general util functions with no specific technology or SDK binding (e.g., Google SDK)
-
read_file_from_path: Read a file from local path
Note
Defines a Connector class in order to interact with BigQuery datasets and tables.
-
execute_query_from_config: Execute a query from local path and with a certain set of parameter configurations. The query can either read data or create a table on BigQuery. -
table_exists: Check if a table exists in a dataset. -
wrap_dictionary_to_query_config: Converts a dictionary of Query Configurations into aBQQueryConfigobject.
Note
The module includes functions for implementing data transformations
-
generate_embeddings: Generate the embeddings from the input texts through the method specified in embeddings_config.method. -
compress_embeddings: Compress the input embeddings with the corresponding selected method incompress_embeddings_config.method. -
encode_text: Encode an input text through embeddings and compress their dimensionality. -
extract_date_information: Extract date information from a column included in theconfig.column_namelike the year, the month, etc. -
standardise_features: Apply the specific standardisation method inconfig.standardisationon the data columnconfig.column_name. -
drop_outliers: Apply the specific drop outliers method inconfig.drop_outlierson the data columnconfig.column_name -
manage_nan_values: Apply the specific drop outliers method inconfig.nan_valueson the data columnconfig.column_name -
prepare_numerical_features: Apply a set of transformation to the selected column inconfig.column_name. -
create_flag_feature: Create a flag feature from the column inconfig.column_name.
Note
The module includes the PostgreSQL connector to interact with the PostgreSQL database.
-
execute_query_from_config: Execute a query from local path and with a certain set of parameter configurations. -
schema_exists: Check if a schema exists in the database. -
tables_exists: Check if a table exists in the database. -
upload_dataframe: Upload a DataFrame to a PostgreSQL table.