shapelets.SandBox#
- class shapelets.SandBox(factory: SandBoxConnection, map_fn: Callable[[Relation], type])#
A SandBox is an environment where data can be loaded, transformed, extracted and analysed.
Sandboxes are created through the method sandbox. SandBoxes instances should not be shared across threads, but it is perfectly safe to have one sandbox instance per thread pointing to the same environment.
See also
sandbox
Creates new SandBox instances
Methods
execute_sql
(sql)Returns a Dataset from raw SQL query
from_csv
(path, *[, auto_detect, ...])Imports a list of csv files as a Relation.
from_feather
(path)Imports a feather file as a Relation.
from_pandas
(df)Load a pandas dataset as a relation.
from_parquet
(paths, *[, binary_string, ...])Mounts parquet files
This function creates a shapelets dataframe with de iris dataset data.
map
(*genExpr)It transforms a Python generator expression into a Shapelets DataSet.
from_arrow