🔥 Transform¶
Function Categories¶
[...] Transform Array (23 functions)¶
are_arrays_equal
: Return true ifarray1
=array2
array_contains
: Returnstrue
ifvalue
is in arrayarr
else returnsfalse
array_intersect
: Returns the intersection of two arrays.array_union
: Returns the union of two arrays.benford_distance
: Calculate the distance from Benford's Law for givenvalues
.distinct_values
: Return distinct valuesfind_greater_value
: Return theoffset
(zero-based index) of the firstvalue
inarr
wherevalue >= x
find_lower_value
: Return theoffset
(zero-based index) of the firstvalue
inarr
wherevalue <= x
find_value
: Return the firstoffset
(zero-based index) ofvalue
in arrayarr
frequent_values
: Returnsfrequent_values
among array ofvalues
get_value
: Return the firstvalue
with a keysearch_key
fromkey_value_items
last_value
: Return last value of arraymax_value
: Return max value of arraymedian_value
: Return median value of arraymin_max_scaler
: Performs min-max scaling on an array.min_value
: Return min value of arraypercentile_value
: Returns percentile of an array with percentile a float in range [0, 1].rare_values
: Returnsrare_values
among array ofvalues
remove_value
: Return an array with all values exceptvalue
.sort_values
: Return sorted array (ascending)sort_values_desc
: Return sorted array (descending)sum_values
: Return the sum of array valuesz_scores
: Computez_scores
Transform Ip (6 functions)¶
ip2asn
: Getasn
ofip
ip2continent
: Getcontinent_code
ofip
ip2continent_name
: Getcontinent
ofip
ip2country
: Getcountry_code
ofip
ip2country_name
: Getcountry_name
ofip
ip_range2ip_networks
: Convert an IP range into a json list of IP networks in CIDR notation
📶 GA4 (1 functions)¶
create_ga4_views
: Create views to help querying GA4 Data
🧠 Machine Learning (7 functions)¶
precision_recall_auc
: Returns the Area Under the Precision Recall Curve (a.k.a. AUC PR)precision_recall_curve
: Returns the Precision-Recall Curveprophet
: Return Time Series Forecast as json using prophetprophet_table
: Return Time Series Forecast as table using prophetroc_auc
: Returns the Area Under the Receiver Operating Characteristic Curve (a.k.a. ROC AUC)roc_curve
: Returns the Receiver Operating Characteristic Curve (a.k.a. ROC Curve)sentiment_score
: Compute sentiment score ofcontent
{...} Transform Json (10 functions)¶
create_materialized_view_w_flattened_json_column
: Create a Materialized view of a table withjson_column
flatteneditems2json
: Returnsjson
object from array ofkey_value_items
json_column_schema
: Returns the schema of a json columnjson_items
: Extractkey_value_items
fromjson_string
json_keys
: Extractkeys
fromjson_string
json_merge
: Mergejson_string1
andjson_string2
json_query
: Extract data fromjson_string
using advanced json queryingjson_schema
: Returns the schema ofdata
json_values
: Extractvalues
fromjson_string
sql_to_flatten_json_column
: Generate the SQL to flatten a jsoncolumn
✨ Transform String (22 functions)¶
camel2snake
: Convertstring
from camelCase to snake_caseconvert_non_ascii_characters_to_unicode_escape_sequences
: Replace all non ASCII characters with escape unicodedeidentify
: Masks sensitive information of typeinfo_types
intext
detect_language
: Detectstext
languagedetect_sensitive_info
: Detect sensitive information intext
is_email_valid
: Return true ifemail
is validis_phone_number_valid
: Return ifphone_number
is validmarkdown2html
: Convertmarkdown
tohtml
ngram_frequency_similarity
: Calculates n-gram similarity between two stringsparse_url
: Returnurl
partsparse_user_agent
: Parses User Agent strings into several componentsphone_number_info
: Getphone_number
inforemove_accents
: Remove accentsremove_extra_whitespaces
: Remove unwanted whitespacesremove_strings
: Remove any string ofstrings_to_remove
fromstring
remove_words
: Remove any word ofwords_to_remove
fromstring
render_handlebars_template
: Render template with context using handlebars.js templating libraryrender_template
: Render template with context using nunjucks.js templating libraryreplace_special_characters
: Replace most common special characters in astring
withreplacement
translate
: Translatetext
intotarget_language
url_decode
: Decodeurl_encoded_string
xml_extract
: Returns content extracted from XML from given XPATH
🌐 Transform Geo Data (5 functions)¶
geocode
: Getaddress
details from Google Mapsgeocode_fr
: Getaddress
details from api-adresse.data.gouv.frh3
: Wrapper around Uber H3reverse_geocode
: Get address details atlatitude
,longitude
validate_address
: Validateaddress
using Google Maps
🌐 Graph (1 functions)¶
connected_components
: Compute the connected components of a non-directed graph.
🔨 Convert Data Format (4 functions)¶
html2pdf
: Converthtml
topdf
json2excel
: Dump data to excel filejson2xml
: Returns XML for given JSON stringxml2json
: Returns JSON as a string for given XML string
📆 Transform Date (7 functions)¶
date_sub_isoyear
: Returns same dayyears
beforegenerate_dates
: Generate a table of datesgregorian2hijri
: Convert Gregorian Date to Hijri Date (taken from here)is_public_holiday
: Return true ifdate
corresponds to a public holiday incountry_code
parse_date
: Parse date with automatic format detectiontranslated_month_name
: Gettranslated_month_name
translated_weekday_name
: Gettranslated_weekday_name
1️⃣ Transform Numeric (7 functions)¶
compute_linear_regression_coefficients
: Returns linear regression coefficients fromx
,y
columns.format_percentage
: Returnfirst_number / second_number
as a formatted percentagenps
: Returns the NPS (Net Promoter Score)quantize_into_bins
: Get thebin_range
in which belongsvalue
quantize_into_bins_with_labels
: Get thelabel
of the bin in which belongsvalue
quantize_into_fixed_width_bins
: Get thebin_range
in which belongsvalue
weighted_average
: Returns the weigthed average elements.
🧠 AI (8 functions)¶
ask_ai
: Ask Anything!ask_appstore_reviews
: Ask AI what your app users think.ask_my_data
: Ask your data anyquestion
in natural language.categorize
: Categorizeitems
in categories and subcategories.classify_text
: Classifytext
amongcandidate_labels
generate_categories
: Returncategories
ofitems
.generate_face_embedding
: Detect Face on image and Generate its Embeddinggenerate_sql
: Transformquestion
to a SQL query.