copy#
- Pseudobulk.copy(*, deep=False)[source]#
Make a copy of this Pseudobulk dataset.
- Parameters:
deep: bool
whether to make a deep copy instead of a shallow one. Since polars DataFrames are immutable, obs[cell_type] and var[cell_type] will always point to the same underlying data as the original for all cell types. The only difference when deep=True is that X[cell_type] will point to a fresh copy of the data, rather than the same data. When deep=False, any modifications to the underlying count matrix will modify both the original and the copy.
- Returns:
A copy of the Pseudobulk dataset.
- Return type: