Loading...

vastorbit.VastFrame.del_catalog

VastFrame.del_catalog() VastFrame

Deletes the current VastFrame catalog.

Returns:

self

Return type:

VastFrame

Examples

Aggregate results are cached to optimize computation. Sometimes cached results can be problemtic or not desired. In those cases del_catalog can be used to delete all cached aggregates.

Let us look at the below example:

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 from vastorbit are used as intended without interfering with functions from other libraries.

We have a dummy data:

vdf = vo.VastFrame({"val": [0, 10, 20]})
123
val
Integer
10
210
320
Rows: 1-3 | Column: val | Type: integer

We can create the summary of the VastFrame using:

vdf.describe()
countmeanstdminapprox_25%approx_50%approx_75%max
"val"3.010.010.00.00.010.020.020.0
Rows: 1-1 | Columns: 9

No if we look at the cache, we can see the stored values:

vdf["val"]._catalog

In order to erase the stored values we can use:

vdf.del_catalog()

Now there will not be any stored values:

vdf["val"]._catalog

See also

VastFrame.explain() : Information on how VAST is computing the current VastFrame relation.