MemorySpool
MemorySpool(
data = None,
)
A Spool for storing patches in memory.
When created from patches, the managing dataframes are built lazily (on first access by an operation which needs them, such as chunk or select) and simple operations (len, integer access, iteration) are served straight from the patch tuple. This makes creating a spool from patches nearly free, which matters when reading many files.
Methods
| Name | Description |
|---|---|
| chunk | Chunk the data in the spool along specified dimension. |
| concatenate_patches | Concatenate the patches together. |
| get_contents | Get a dataframe of the spool contents. |
| get_patch_names | Generates the default name of patch data. |
| map | Map a function of all the contents of the spool. |
| new_from_df | Create a new instance from dataframes. |
| select | Sub-select parts of the spool. |
| sort | Sort the Spool based on a specific attribute. |
| split | Yield sub-patches based on specified parameters. |
| stack_patches | Stack (add) all patches compatible with first patch together. |
| update | Updates the contents of the spool, return the updated spool. |