Skip to content

Commit 4f6159b

Browse files
committed
MAINT: Fix issue in StataReader due to upstream changes
Avoid creating an array of dtypes to workaround NumPy future change closes pandas-dev#35426
1 parent 04e9e0a commit 4f6159b

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)