File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -567,10 +567,7 @@ def _homogenize(
567
567
# Forces alignment. No need to copy data since we
568
568
# are putting it into an ndarray later
569
569
val = val .reindex (index , copy = False )
570
- if isinstance (val ._mgr , SingleBlockManager ):
571
- refs .append (val ._mgr ._block .refs )
572
- else :
573
- refs .append (None )
570
+ refs .append (val ._references )
574
571
val = val ._values
575
572
else :
576
573
if isinstance (val , dict ):
Original file line number Diff line number Diff line change 34
34
properties ,
35
35
reshape ,
36
36
)
37
+ from pandas ._libs .internals import BlockValuesRefs
37
38
from pandas ._libs .lib import (
38
39
is_range_indexer ,
39
40
no_default ,
@@ -734,6 +735,12 @@ def _values(self):
734
735
"""
735
736
return self ._mgr .internal_values ()
736
737
738
+ @property
739
+ def _references (self ) -> BlockValuesRefs | None :
740
+ if isinstance (self ._mgr , SingleArrayManager ):
741
+ return None
742
+ return self ._mgr ._block .refs
743
+
737
744
# error: Decorated property not supported
738
745
@Appender (base .IndexOpsMixin .array .__doc__ ) # type: ignore[misc]
739
746
@property
You can’t perform that action at this time.
0 commit comments