Skip to content

Commit f3a4d38

Browse files
committed
values-> _values
1 parent df25c00 commit f3a4d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/dtypes/missing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _isna_ndarraylike(obj):
229229
if not is_extension:
230230
# Avoid accessing `.values` on things like
231231
# PeriodIndex, which may be expensive.
232-
values = getattr(obj, "values", obj)
232+
values = getattr(obj, "_values", obj)
233233
else:
234234
values = obj
235235

@@ -270,7 +270,7 @@ def _isna_ndarraylike(obj):
270270

271271

272272
def _isna_ndarraylike_old(obj):
273-
values = getattr(obj, "values", obj)
273+
values = getattr(obj, "_values", obj)
274274
dtype = values.dtype
275275

276276
if is_string_dtype(dtype):

0 commit comments

Comments
 (0)