DEPR: Series ndarray properties (strides, data, base, itemsize, flags) by jorisvandenbossche · Pull Request #20721 · pandas-dev/pandas (original) (raw)
The explanation perfectly makes sense, but you don't like the way I solved it I suppose (I agree it is not the nicest, but I was thinking that this would only be temporarily until DatetimeTZBlock is an ExtensionBlock).
To fix the usage itself, .base is used in two placed:
Block.is_view: this I can override inDatetimeTzBlockto checkself.values.values.baseconcatenate_join_units:
pandas/pandas/core/internals.py
Line 5544 inede11afif copy and concat_values.base is not None: Not fully sure about this one what to do here.