Skip to content

Commit 52d1073

Browse files
committed
Fix linting error
1 parent 39dcd99 commit 52d1073

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
@@ -1515,8 +1515,7 @@ def read(self, nrows=None, convert_dates=None,
15151515
if self.dtyplist[i] is not None:
15161516
col = data.columns[i]
15171517
dtype = data[col].dtype
1518-
if ((dtype != np.dtype(object)) and
1519-
(dtype != self.dtyplist[i])):
1518+
if dtype != np.dtype(object) and dtype != self.dtyplist[i]:
15201519
requires_type_conversion = True
15211520
data_formatted.append(
15221521
(col, Series(data[col], index, self.dtyplist[i])))

0 commit comments

Comments
 (0)