VastFrame¶
Main data structure for working with VAST DataBase - pandas-like API for data at scale.
Core Classes¶
VastFrame - DataFrame-like object for VAST DataBase tables
- class vastorbit.VastFrame(input_relation: str | list | dict | DataFrame | ndarray | TableSample, usecols: Annotated[str | list[str], 'STRING representing one column or a list of columns'] | None = None, schema: str | None = None, _empty: bool = False, _is_sql_magic: int = 0, _clean_query: bool = True)¶
An object that records all user modifications, allowing users to manipulate the relation without mutating the underlying data in VAST. When changes are made, the
VastFramequeries the VAST DataBase, which aggregates and returns the final result. TheVastFramecreates, for each column of the relation, a Virtual Column (VastColumn) that stores the column alias an all user transformations.- Parameters:
input_relation (str | TableSample | pandas.DataFrame | list | numpy.ndarray | dict, optional) – If the input_relation is of type
str, it must represent the relation (view, table, or temporary table) used to create the object. To get a specificschemarelation, your string must include both the relation and schema:'schema.relation'or'"schema"."relation"'. Alternatively, you can use the ‘schema’ parameter, in which case theinput_relationmust exclude theschemaname. It can also be the SQL query used to create theVastFrame. If it is apandas.DataFrame, a temporary local table is created. Otherwise, the VastFrame is created using the generated SQL code of multiple UNIONs.usecols (SQLColumns, optional) – When
input_relationis not an array-like type: List of columns used to create the object. As VAST is a columnar DB, including less columns makes the process faster. Do not hesitate to exclude useless columns. Otherwise: List of column names.schema (str, optional) – The schema of the relation. Specifying a schema allows you to specify a table within a particular schema, or to specify a
schemaandrelationname that contain period ‘.’ characters. If specified, theinput_relationcannot include aschema.
- Variables:
VastColumns (
VastColumn) – EachVastColumnof theVastFrameis accessible by specifying its name between brackets. For example, to access theVastColumn“myVC”:VastFrame["myVC"].
Examples
In this example, we will look at some of the ways how we can create a
VastFrame.From
dictionaryFrom
numpy.arrayFrom
pandas.DataFrameFrom SQL Query
From a table
After that we will also look at the mathematical operators that are available:
pandas-Like
SQL-Like
Lastly, we will look at some examples of applications of functions that be applied directly on the
VastFrame.
Let’s begin by importing vastorbit.
import vastorbit as vo
Hint
By assigning an alias to
vastorbit, we mitigate the risk of code collisions with other libraries. This precaution is necessary because vastorbit uses commonly known function names like “average” and “median”, which can potentially lead to naming conflicts. The use of an alias ensures that the functions fromvastorbitare used as intended without interfering with functions from other libraries.Dictionary¶
This is the most direct way to create a
VastFrame:vdf = vo.VastFrame( { "cats": ["A", "B", "C"], "reps": [2, 4, 8], }, )
AbccatsVarchar(1)123repsInteger1 B 4 2 C 8 3 A 2 Numpy Array¶
We can also use a
numpy.array:import numpy as np vdf = vo.VastFrame( np.array( [ [1, 2, 3], [4, 5, 6], [7, 8, 9], ], ), usecols = [ "col_A", "col_B", "col_C", ], )
123col_AInteger123col_BInteger123col_CInteger1 7 8 9 2 4 5 6 3 1 2 3 pandas DataFrame¶
We can also use a
pandas.DataFrameobject:# Import pandas library import pandas as pd # Create the data dictionary data = { 'Name': ['John', 'Ali', 'Pheona'], 'Age': [25, 30, 22], 'City': ['New York', 'Gaza', 'Los Angeles'], } # Create the pandas DataFrame object df = pd.DataFrame(data) # Create a VastFrame vdf = vo.VastFrame(df)
AbcnameVarchar(50)123ageIntegerAbccityVarchar(50)1 John 25 New York 2 Ali 30 Gaza 3 Pheona 22 Los Angeles SQL Query¶
We can also use a SQL Query:
# Write a SQL Query to fetch three rows from the Titanic table sql_query = "SELECT age, sex FROM default.titanic LIMIT 3;" # Create a VastFrame vdf = vo.VastFrame(sql_query)
123pclassInteger123survivedIntegerAbcnameVarchar(164)AbcsexVarchar(20)123ageDouble123sibspInteger123parchIntegerAbcticketVarchar(36)123fareDoubleAbccabinVarchar(30)AbcembarkedVarchar(20)AbcboatVarchar(100)123bodyIntegerAbchome.destVarchar(100)1 1 1 Allen, Miss. Elisabeth Walton female 29.0 0 0 24160 211.3375 B5 S 2 [null] St Louis, MO 2 1 1 Allison, Master. Hudson Trevor male 0.92 1 2 113781 151.55 C22 C26 S 11 [null] Montreal, PQ / Chesterville, ON 3 1 0 Allison, Miss. Helen Loraine female 2.0 1 2 113781 151.55 C22 C26 S [null] [null] Montreal, PQ / Chesterville, ON 4 1 0 Allison, Mr. Hudson Joshua Creighton male 30.0 1 2 113781 151.55 C22 C26 S [null] 135 Montreal, PQ / Chesterville, ON 5 1 0 Allison, Mrs. Hudson J C (Bessie Waldo Daniels) female 25.0 1 2 113781 151.55 C22 C26 S [null] [null] Montreal, PQ / Chesterville, ON 6 1 1 Anderson, Mr. Harry male 48.0 0 0 19952 26.55 E12 S 3 [null] New York, NY 7 1 1 Andrews, Miss. Kornelia Theodosia female 63.0 1 0 13502 77.9583 D7 S 10 [null] Hudson, NY 8 1 0 Andrews, Mr. Thomas Jr male 39.0 0 0 112050 0.0 A36 S [null] [null] Belfast, NI 9 1 1 Appleton, Mrs. Edward Dale (Charlotte Lamson) female 53.0 2 0 11769 51.4792 C101 S D [null] Bayside, Queens, NY 10 1 0 Artagaveytia, Mr. Ramon male 71.0 0 0 PC 17609 49.5042 [null] C [null] 22 Montevideo, Uruguay 11 1 0 Astor, Col. John Jacob male 47.0 1 0 PC 17757 227.525 C62 C64 C [null] 124 New York, NY 12 1 1 Astor, Mrs. John Jacob (Madeleine Talmadge Force) female 18.0 1 0 PC 17757 227.525 C62 C64 C 4 [null] New York, NY 13 1 1 Aubart, Mme. Leontine Pauline female 24.0 0 0 PC 17477 69.3 B35 C 9 [null] Paris, France 14 1 1 Barber, Miss. Ellen "Nellie" female 26.0 0 0 19877 78.85 [null] S 6 [null] [null] 15 1 1 Barkworth, Mr. Algernon Henry Wilson male 80.0 0 0 27042 30.0 A23 S B [null] Hessle, Yorks 16 1 0 Baumann, Mr. John D male [null] 0 0 PC 17318 25.925 [null] S [null] [null] New York, NY 17 1 0 Baxter, Mr. Quigg Edmond male 24.0 0 1 PC 17558 247.5208 B58 B60 C [null] [null] Montreal, PQ 18 1 1 Baxter, Mrs. James (Helene DeLaudeniere Chaput) female 50.0 0 1 PC 17558 247.5208 B58 B60 C 6 [null] Montreal, PQ 19 1 1 Bazzani, Miss. Albina female 32.0 0 0 11813 76.2917 D15 C 8 [null] [null] 20 1 0 Beattie, Mr. Thomson male 36.0 0 0 13050 75.2417 C6 C A [null] Winnipeg, MN Table¶
A table can also be directly ingested:
# Create a VastFrame from the titanic table in default schema vdf = vo.VastFrame("titanic")
123pclassInteger123survivedIntegerAbcnameVarchar(164)AbcsexVarchar(20)123ageDouble123sibspInteger123parchIntegerAbcticketVarchar(36)123fareDoubleAbccabinVarchar(30)AbcembarkedVarchar(20)AbcboatVarchar(100)123bodyIntegerAbchome.destVarchar(100)1 1 1 Allen, Miss. Elisabeth Walton female 29.0 0 0 24160 211.3375 B5 S 2 [null] St Louis, MO 2 1 1 Allison, Master. Hudson Trevor male 0.92 1 2 113781 151.55 C22 C26 S 11 [null] Montreal, PQ / Chesterville, ON 3 1 0 Allison, Miss. Helen Loraine female 2.0 1 2 113781 151.55 C22 C26 S [null] [null] Montreal, PQ / Chesterville, ON 4 1 0 Allison, Mr. Hudson Joshua Creighton male 30.0 1 2 113781 151.55 C22 C26 S [null] 135 Montreal, PQ / Chesterville, ON 5 1 0 Allison, Mrs. Hudson J C (Bessie Waldo Daniels) female 25.0 1 2 113781 151.55 C22 C26 S [null] [null] Montreal, PQ / Chesterville, ON 6 1 1 Anderson, Mr. Harry male 48.0 0 0 19952 26.55 E12 S 3 [null] New York, NY 7 1 1 Andrews, Miss. Kornelia Theodosia female 63.0 1 0 13502 77.9583 D7 S 10 [null] Hudson, NY 8 1 0 Andrews, Mr. Thomas Jr male 39.0 0 0 112050 0.0 A36 S [null] [null] Belfast, NI 9 1 1 Appleton, Mrs. Edward Dale (Charlotte Lamson) female 53.0 2 0 11769 51.4792 C101 S D [null] Bayside, Queens, NY 10 1 0 Artagaveytia, Mr. Ramon male 71.0 0 0 PC 17609 49.5042 [null] C [null] 22 Montevideo, Uruguay 11 1 0 Astor, Col. John Jacob male 47.0 1 0 PC 17757 227.525 C62 C64 C [null] 124 New York, NY 12 1 1 Astor, Mrs. John Jacob (Madeleine Talmadge Force) female 18.0 1 0 PC 17757 227.525 C62 C64 C 4 [null] New York, NY 13 1 1 Aubart, Mme. Leontine Pauline female 24.0 0 0 PC 17477 69.3 B35 C 9 [null] Paris, France 14 1 1 Barber, Miss. Ellen "Nellie" female 26.0 0 0 19877 78.85 [null] S 6 [null] [null] 15 1 1 Barkworth, Mr. Algernon Henry Wilson male 80.0 0 0 27042 30.0 A23 S B [null] Hessle, Yorks 16 1 0 Baumann, Mr. John D male [null] 0 0 PC 17318 25.925 [null] S [null] [null] New York, NY 17 1 0 Baxter, Mr. Quigg Edmond male 24.0 0 1 PC 17558 247.5208 B58 B60 C [null] [null] Montreal, PQ 18 1 1 Baxter, Mrs. James (Helene DeLaudeniere Chaput) female 50.0 0 1 PC 17558 247.5208 B58 B60 C 6 [null] Montreal, PQ 19 1 1 Bazzani, Miss. Albina female 32.0 0 0 11813 76.2917 D15 C 8 [null] [null] 20 1 0 Beattie, Mr. Thomson male 36.0 0 0 13050 75.2417 C6 C A [null] Winnipeg, MN Mathematical Operators¶
We can use all the common mathematical operators on the
VastFrame.pandas-Like¶
First let us re-create a simple
VastFrame:vdf = vo.VastFrame( { "cats": ["A", "B", "C"], "reps": [2, 4, 8], }, )
In order to search for a specific string value of a specific column:
result = vdf[vdf["cats"] == "A"]
AbccatsVarchar(1)123repsInteger1 C 8 2 B 4 Similarly we can perform a mathematical operations as well for numerical columns:
result = vdf[vdf["reps"] > 2]
AbccatsVarchar(1)123repsInteger1 C 8 2 B 4 Both operators could also be combined:
result = vdf[vdf["reps"] > 2][vdf["cats"] == "C"]
AbccatsVarchar(1)123repsInteger1 C 8 We can also perform mathematical calculations on the elements inside the
VastFramequite conveniently:vdf["new"] = abs(vdf["reps"] * 4 - 100)
AbccatsVarchar(1)123repsInteger123newInteger1 C 8 68 2 B 4 84 3 A 2 92 SQL-Like¶
SQL queries can be directly applied on the
VastFrameusingStringSQL. This adds a new level of flexibility to theVastFrame.StringSQLallows the user to generate formatted SQL queries in a string form. Since any SQL query in string format can be passed to theVastFrame, you can seamlessly pass the output ofStringSQLdirectly to theVastFrame.# Create the SQL Query using StringSQL sql_query = vo.StringSQL("reps > 2") # Get the output as a VastFrame result = vdf[sql_query]
count mean std min approx_25% approx_50% approx_75% max "pclass" 1309.0 2.294881588999236 0.8378360189701272 1.0 2.0 3.0 3.0 3.0 "survived" 1309.0 0.3819709702062643 0.4860551708664832 0.0 0.0 0.0 1.0 1.0 "age" 1046.0 29.881137667304014 14.413493211271327 0.17 20.90530267915083 28.1764738120901 38.57310924369748 80.0 "sibsp" 1309.0 0.4988540870893812 1.0416583905961019 0.0 0.0 0.0 1.0 8.0 "parch" 1309.0 0.3850267379679144 0.865560275349515 0.0 0.0 0.0 0.0 9.0 "fare" 1308.0 33.29547928134565 51.758668239174185 0.0 7.920113391304348 14.517231666666666 31.24888996860731 512.3292 "body" 121.0 160.8099173553719 97.69692199600308 1.0 73.0 157.0 255.0 328.0 Note
Have a look at
StringSQLfor more details.Another example of a slightly advanced SQL Query could be:
# Create the SQL Query using StringSQL sql_query = vo.StringSQL("reps BETWEEN 3 AND 8 AND cats = 'B'") # Get the output as a VastFrame result = vdf[sql_query]
AbccatsVarchar(1)123repsInteger123newInteger1 B 4 84
Direct Functions¶
There are many methods that can be directly used by
VastFrame. Let us look at how conveiently we can call them. Here is an example of theVastFrame.describe()method:# Import the dataset from vastorbit.datasets import load_titanic # Create VastFrame vdf = load_titanic() # Summarize the VastFrame vdf.describe()
count mean std min approx_25% approx_50% approx_75% max "pclass" 1309.0 2.294881588999236 0.8378360189701272 1.0 2.0 3.0 3.0 3.0 "survived" 1309.0 0.3819709702062643 0.4860551708664832 0.0 0.0 0.0 1.0 1.0 "age" 1046.0 29.881137667304014 14.413493211271327 0.17 20.90530267915083 28.1764738120901 38.57310924369748 80.0 "sibsp" 1309.0 0.4988540870893812 1.0416583905961019 0.0 0.0 0.0 1.0 8.0 "parch" 1309.0 0.3850267379679144 0.865560275349515 0.0 0.0 0.0 0.0 9.0 "fare" 1308.0 33.29547928134565 51.758668239174185 0.0 7.920113391304348 14.517231666666666 31.24888996860731 512.3292 "body" 121.0 160.8099173553719 97.69692199600308 1.0 73.0 157.0 255.0 328.0 Note
Explore
VastFrameandVastColumndifferent methods to see more examples.See also
VastColumn: Columns ofVastFrameobject.
VastColumn - Column operations and transformations
- class vastorbit.VastColumn(alias: str, transformations: list | None = None, parent: VastFrame | None = None, catalog: dict | None = None)¶
Python object that stores all user transformations. If the
VastFramerepresents the entire relation, aVastColumncan be seen as one column of that relation. Through its abstractions,VastColumnsimplify several processes.- Parameters:
alias (str) –
VastColumnalias.transformations (list, optional) – List of the different transformations. Each transformation must be similar to the following:
(function, type, category)parent (VastFrame, optional) – Parent of the
VastColumn. OneVastFramecan have multiple childrenVastColumn, whereas oneVastColumncan only have one parent.catalog (dict, optional) – Catalog where each key corresponds to an aggregation.
VastColumnwill memorize the already computed aggregations to increase performance. The catalog is updated when the parentVastFrameis modified.
- Variables:
str (transformations,) –
VastColumnalias.dict (catalog,) – Catalog of pre-computed aggregations.
VastFrame (parent,) – Parent of the
VastColumn.str – List of the different transformations.
Examples
Let’s begin by importing vastorbit.
import vastorbit as vo
Hint
By assigning an alias to
vastorbit, we mitigate the risk of code collisions with other libraries. This precaution is necessary because vastorbit uses commonly known function names like “average” and “median”, which can potentially lead to naming conflicts. The use of an alias ensures that the functions fromvastorbitare used as intended without interfering with functions from other libraries.Let’s create a
VastFramewith twoVastColumn:vdf = vo.VastFrame( { "cats": ["A", "B", "C"], "reps": [2, 4, 8], }, )
AbccatsVarchar(1)123repsInteger1 B 4 2 C 8 3 A 2 “cats” and “reps” are
VastColumnobjects. They can be accessed the same way as adictionaryor apandas.DataFrame. They represent the columns of the entire relation.For example, the following code will access the
VastColumn“cats”:vdf["cats"]
Note
VastColumnare columns inside aVastFrame; they have their own methods but cannot exist without a parentVastFrame. Please refer toVastFrameto see an entire example.See also
VastFrame: Main vastorbit dataset object.
Visualization¶
Create interactive charts with Plotly or Matplotlib backends.
General Plots¶
|
Draws the bar chart of the input VastColumns based on an aggregation. |
|
Draws the horizontal bar chart of the input |
|
Draws the Box Plot of the input VastColumns. |
|
Draws the contour plot of the input function using two input VastColumns. |
|
Draws the VastColumns Density Plot using histogram approximation. |
|
Draws the Heatmap of the two input VastColumns. |
|
Draws the Hexbin of the input VastColumns based on an aggregation. |
|
Draws the histograms of the input VastColumns based on an aggregation. |
|
Draws the global outliers plot of one or two columns based on their ZSCORE. |
|
Draws the nested pie chart of the input |
|
Draws the pivot table of one or two columns based on an aggregation. |
|
Draws the time series. |
|
Draws the scatter plot of the input VastColumns. |
|
Draws the scatter matrix of the VastFrame. |
|
Returns the chi-square term using the pivot table of the response |
|
Draws the range plot of the input VastColumns. |
|
Draws the bar chart of the VastColumn based on an aggregation. |
|
Draws the horizontal bar chart of the VastColumn based on an aggregation. |
|
Draws the Time Series of the VastColumn. |
|
Draws the box plot of the VastColumn. |
|
Draws the VastColumn Density Plot using histogram approximation. |
|
Draws the histogram of the input VastColumn based on an aggregation. |
|
Draws the pie chart of the VastColumn based on an aggregation. |
|
Draws the Time Series of the VastColumn. |
|
Draws the range plot of the VastColumn. |
|
Draws the spider plot of the input VastColumn based on an aggregation. |
Animated Plots¶
|
Draws the animated bar chart (bar race). |
|
Draws the animated pie chart. |
|
Draws the animated line plot. |
|
Draws the animated scatter plot. |
Plotting Backend Classes¶
Advanced: Internal Plotting Classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plotly Base Class. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Descriptive Statistics¶
In-database aggregations and statistical summaries.
|
Utilizes the |
|
Aggregates the VastFrame using the input functions. |
|
Applies the |
|
Uses the |
|
This operation aggregates the VastFrame using the |
|
This operation aggregates the VastFrame using the |
|
Performs aggregation on the VastFrame using a list of aggregate functions, including |
|
This function aggregates the VastFrame using multiple statistical aggregations such as minimum (min), maximum (max), median, cardinality (unique), and other relevant statistics. |
|
This function returns a list or set of values that occur more than once within the dataset. |
|
Calculates the kurtosis of the VastFrame to obtain a measure of the data's peakedness or tailness. |
|
Utilizes the |
|
Aggregates the VastFrame by applying the |
|
Aggregates the VastFrame using the |
|
Aggregates the VastFrame by applying the |
|
When aggregating the VastFrame using nunique (cardinality), vastorbit employs the COUNT DISTINCT function to determine the number of unique values in a particular column. |
|
Aggregates the VastFrame by applying the |
|
Aggregates the VastFrame using specified |
|
Computes the score using the input columns and the input metric. |
|
Leverages the |
|
Utilizes the |
|
Aggregates the VastFrame using |
|
Aggregates the VastFrame using |
|
Aggregates the VastFrame using |
|
Utilizes the |
|
Aggregates the VastFrame using the input functions. |
|
This operation aggregates the VastFrame using the |
|
This operation aggregates the VastFrame using the |
|
This function aggregates the VastColumn using multiple statistical aggregations such as minimum (min), maximum (max), median, cardinality (unique), and other relevant statistics. |
|
This function returns the distinct categories or unique values within a VastColumn. |
|
Calculates the kurtosis of the VastColumn to obtain a measure of the data's peakedness or tailness. |
|
Utilizes the |
|
Aggregates the VastFrame by applying the 'MAX' aggregation, which calculates the maximum value, for the input column. |
|
Aggregates the VastFrame using the |
|
Aggregates the VastFrame by applying the |
|
This function returns the nth most frequently occurring element in the VastColumn. |
|
Returns the |
|
Returns the |
|
When aggregating the VastFrame using nunique (cardinality), vastorbit employs the COUNT DISTINCT function to determine the number of unique values in particular columns. |
|
Aggregates the VastColumn by applying the |
|
Aggregates the VastColumn using a specified |
|
Leverages the |
|
Utilizes the |
|
Aggregates the VastFrame using |
|
Aggregates the VastFrame using |
|
This function returns the k most frequently occurring elements in a column, along with their distribution expressed as percentages. |
|
This function returns the k most frequently occurring elements in a column, along with information about how often they occur. |
|
Aggregates the VastFrame using |
Correlation & Dependencies¶
General Correlation¶
|
Calculates the correlations between the specified VastColumn and its various time lags. |
|
Calculates the Correlation Matrix for the VastFrame. |
|
Computes the Correlation Coefficient between two input VastColumns, along with its associated p-value. |
|
Computes the covariance matrix of the VastFrame. |
|
Calculates the Information Value (IV) Table, a powerful tool for assessing the predictive capability of an independent variable concerning a dependent variable. |
|
Computes the partial autocorrelations of the specified VastColumn. |
|
Calculates the regression matrix for the given VastFrame. |
|
Calculates the Information Value (IV) / Weight Of Evidence (WOE) Table. |
Time Series Analysis¶
Data Preprocessing¶
Encoding¶
|
Creates a new feature by evaluating on provided conditions. |
|
Encodes the VastColumns using the One Hot Encoding algorithm. |
|
Discretizes the VastColumn using the input list. |
|
Encodes the VastColumn using a user-defined encoding. |
|
Discretizes the VastColumn using the input method. |
Encodes the VastColumn using a bijection from the different categories to [0, n - 1] (n being the VastColumn cardinality). |
|
|
Encodes the VastColumn using the average of the response partitioned by the different VastColumn categories. |
|
Encodes the VastColumn with the One-Hot Encoding algorithm. |
Missing Values¶
|
Filters the specified VastColumns in a VastFrame for missing values. |
|
Fills missing elements in |
|
Computes a regular time interval VastFrame by interpolating the missing values using different techniques. |
Duplicate Values¶
|
Filters the duplicates using a partition by the input VastColumns. |
Normalization & Outliers¶
|
Clips the VastColumn by transforming the values less than the lower bound to the lower bound value and the values higher than the upper bound to the upper bound value. |
|
Fills the VastColumns outliers using the input method. |
|
Scales the input VastColumns using the input method. |
Data Type Conversion¶
Formatting¶
|
Method used to format the input columns by using the VastFrame columns' names. |
|
Returns the matching index. |
|
Method used to check if the input column name is used by the VastFrame. |
|
Merges columns with similar names. |
Train/Test Split¶
|
Creates two VastFrames (train/test), which can be used to evaluate a model. |
Working with Weights¶
|
Duplicates the |
Complete Disjunctive Table¶
|
Returns the complete disjunctive table of the VastFrame. |
Feature Engineering¶
Analytic Functions¶
|
Adds a new VastColumn to the VastFrame by using an advanced analytical function on one or two specific VastColumns. |
|
Computes a regular time interval VastFrame by interpolating the missing values using different techniques. |
|
Adds a new VastColumn to the VastFrame that corresponds to sessions (user activity during a specific time). |
Custom Feature Creation¶
Feature Transformations¶
|
Applies the absolute value function to all input VastColumns. |
|
Applies each function of the dictionary to the input VastColumns. |
|
Applies a function to all VastColumns. |
|
Returns a VastFrame containing the different product combinations of the input |
|
Swap the two input VastColumns. |
|
Applies the absolute value function to the input VastColumn. |
|
Adds the input element to the VastColumn. |
|
Applies a function to the VastColumn. |
|
Applies a default function to the VastColumn. |
|
Extracts a specific TS field from the VastColumn (only if the VastColumn type is date like). |
|
Divides the VastColumn by the input element. |
|
Multiplies the VastColumn by the input element. |
|
Rounds the VastColumn by keeping only the input number of digits after the decimal point. |
|
Slices and transforms the VastColumn using a time series rule. |
|
Subtracts the input element from the VastColumn. |
Moving Windows¶
|
Adds a new |
|
Adds a new |
|
Adds a new |
|
Adds a new |
|
Adds a new |
Text Operations¶
|
Computes a new VastColumn based on regular expressions. |
|
Verifies if the regular expression is in each of the VastColumn records. |
|
Computes the number of matches for the regular expression in each record of the VastColumn. |
|
Extracts the regular expression in each record of the VastColumn. |
|
Replaces the regular expression matches in each of the VastColumn record by an input value. |
|
Slices the VastColumn. |
Binary Operators¶
Feature Selection¶
|
Returns a CHAID (Chi-square Automatic Interaction Detector) tree. |
|
Function used to simplify the code. |
Join, Sort & Transform¶
|
Merges the VastFrame with another VastFrame or an input relation, and returns a new VastFrame. |
|
Returns a deep copy of the |
|
This method facilitates the aggregation of the VastFrame by grouping its elements based on one or more specified criteria. |
|
Joins the |
|
Returns the Narrow Table of the VastFrame using the input VastColumns. |
|
Returns the Pivot of the VastFrame using the input aggregation. |
|
Recommend items based on the Collaborative Filtering (CF) technique. |
|
Sorts the |
|
Adds a copy VastColumn to the parent VastFrame. |
Filter & Sample¶
Search¶
|
Searches for elements that match the input conditions. |
Sample¶
|
Downsamples the input VastFrame. |
Balance¶
|
Balances the dataset using the input method. |
Filter Columns¶
|
Drops the VastColumn from the VastFrame. |
|
Drops outliers in the VastColumn. |
Filter Records¶
|
Filters the VastFrame by only keeping the records at the input time. |
|
Filters the VastFrame by only keeping the records between two input elements. |
|
Filters the VastFrame by only keeping the records between two input times. |
|
Filters the VastFrame using the input expressions. |
|
Filters the VastFrame by only keeping the first records. |
|
Checks whether specific records are in the VastFrame and returns the new VastFrame of the search. |
|
Filters the VastFrame by only keeping the last records. |
|
Checks whether specific records are in the VastColumn and returns the new VastFrame of the search. |
Serialization & Export¶
General Formats¶
In-Memory Objects¶
|
Converts the |
Converts the VastFrame to a |
|
|
Converts the |
|
Converts the |
Databases¶
|
Saves the |
Binary Formats¶
|
Saves the |
Utilities & Information¶
Information¶
|
Returns the VastFrame categorical VastColumns. |
|
Returns the current VastFrame relation. |
|
Returns a list of the VastColumns of type date in the VastFrame. |
|
Returns the different VastColumns types. |
|
Returns True if the VastFrame is empty. |
|
Provides information on how Trino is computing the current |
|
Returns the VastFrame VastColumns. |
|
Returns the VastFrame head. |
|
This method displays the interactive table. |
|
Returns a part of the |
|
Displays information about the different VastFrame transformations. |
Returns the VastFrame memory usage. |
|
|
Returns the VastFrame expected store usage. |
|
Returns a list of names of the numerical VastColumns in the VastFrame. |
|
Returns the number of rows and columns of the |
|
Returns the tail of the |
|
Returns the category of the VastColumn. |
|
Returns the VastColumn DB type. |
|
Returns the VastColumn DB type. |
|
Returns a new |
|
Returns the head of the |
|
Returns a part of the |
|
Returns True if the VastColumn is an array, False otherwise. |
|
Returns True if the VastColumn is boolean, False otherwise. |
|
Returns True if the VastColumn category is date, False otherwise. |
|
Returns True if the VastColumn is numerical, False otherwise. |
Returns the VastColumn memory usage. |
|
Returns the VastColumn expected store usage (unit: b). |
|
|
Returns the tail of the |