Skip to content

Commit b2f09d9

Browse files
committed
Rename properties cache to avoid collision with dtype instance cache
1 parent ce082fb commit b2f09d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/properties.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ cdef class CachedProperty:
2323
return self
2424

2525
# Get the cache or set a default one if needed
26-
cache = getattr(obj, '_cache', None)
26+
cache = getattr(obj, '_property_cache', None)
2727
if cache is None:
2828
try:
29-
cache = obj._cache = {}
29+
cache = obj._property_cache = {}
3030
except (AttributeError):
3131
return self
3232

0 commit comments

Comments
 (0)