Skip to content

rechunk

Rechunk()

Bases: Transform

Rechunks a dataframe.

Rearranges a dataframe so that it resides in a contiguous block of memory. This improves the performance of any subsequent transform performed on the rechunked dataframe. However, this operation can be costly depending on the size of the dataframe, so it should be used with care and only when deemed necessary.

Initializes the Rechunk transform.

Source code in src/flowcean/transforms/rechunk.py
18
19
20
def __init__(self) -> None:
    """Initializes the Rechunk transform."""
    super().__init__()