Skip to content

Commit 88c9e16

Browse files
committed
Change values to _ndarray_values in _do_convert_missing
1 parent eacead8 commit 88c9e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/stata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ def _do_convert_missing(self, data, convert_missing):
16301630

16311631
if convert_missing: # Replacement follows Stata notation
16321632

1633-
missing_loc = np.argwhere(missing.values)
1633+
missing_loc = np.argwhere(missing._ndarray_values)
16341634
umissing, umissing_loc = np.unique(series[missing],
16351635
return_inverse=True)
16361636
replacement = Series(series, dtype=np.object)

0 commit comments

Comments
 (0)