koladata

Home
Overview
Fundamentals
Glossary
Cheatsheet
API Reference
Quick Recipes
Deep Dive
Common Pitfalls and Gotchas
Persistent Storage

View the Project on GitHub google/koladata

kd_ext.storage.DataSlicePath API

A data slice path.

DataSlicePath.__init__(self, actions: tuple[DataSliceAction, ...]) -> None

Initialize self.  See help(type(self)) for accurate signature.

DataSlicePath.concat(self, other: DataSlicePath) -> DataSlicePath

Alias for kd_ext.storage.data_slice_path.DataSlicePath.concat

DataSlicePath.depth

Returns the depth of this data slice path from the root.

That is the same as the number of actions in the path. The root is at the
empty path, which has depth 0. A path ".foo" has depth 1, ".foo[:]" has
depth 2, ".foo[:].bar" has depth 3, etc.

DataSlicePath.evaluate(self, data_slice: kd.types.DataSlice) -> kd.types.DataSlice

Alias for kd_ext.storage.data_slice_path.DataSlicePath.evaluate

DataSlicePath.extended_with_action(self, action: DataSliceAction) -> DataSlicePath

Alias for kd_ext.storage.data_slice_path.DataSlicePath.extended_with_action

DataSlicePath.from_actions(actions: list[DataSliceAction]) -> DataSlicePath

Alias for kd_ext.storage.data_slice_path.DataSlicePath.from_actions

DataSlicePath.parse_from_string(data_slice_path: str) -> DataSlicePath

Alias for kd_ext.storage.data_slice_path.DataSlicePath.parse_from_string

DataSlicePath.to_string(self) -> str

Alias for kd_ext.storage.data_slice_path.DataSlicePath.to_string