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

from_csv(path, *[, auto_detect, ...])

Imports a list of csv files as a Relation.

from_pandas(df)

Load a pandas dataset as a relation.

from_parquet(paths, *[, binary_string, ...])

Mounts parquet files

from_sql(sql)

Returns a Dataset from raw SQL query

load_test_data()

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