Skip to content

Commit e06a908

Browse files
committed
Change the arg of np.argwhere
1 parent 4f5d03d commit e06a908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/stata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,8 @@ def _do_convert_missing(self, data, convert_missing):
16291629
continue
16301630

16311631
if convert_missing: # Replacement follows Stata notation
1632-
missing_loc = np.argwhere(missing)
1632+
1633+
missing_loc = np.argwhere(missing.values)
16331634
umissing, umissing_loc = np.unique(series[missing],
16341635
return_inverse=True)
16351636
replacement = Series(series, dtype=np.object)

0 commit comments

Comments
 (0)