Skip to content

Commit b827fe2

Browse files
authored
MAINT: Fix issue in StataReader due to upstream changes (#35427)
1 parent 3701a9b commit b827fe2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/stata.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,7 @@ def read(
16431643

16441644
data = self._insert_strls(data)
16451645

1646-
cols_ = np.where(self.dtyplist)[0]
1647-
1646+
cols_ = np.where([dtyp is not None for dtyp in self.dtyplist])[0]
16481647
# Convert columns (if needed) to match input type
16491648
ix = data.index
16501649
requires_type_conversion = False

0 commit comments

Comments
 (0)