Skip to content

Commit 301a773

Browse files
committed
Merge pull request #9916 from nburns/remove_unnecessary_conditional
ENH: Remove Unnecessary Conditional
2 parents 08245ba + 4c826c8 commit 301a773

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/frame.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -794,10 +794,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None,
794794
return cls()
795795

796796
try:
797-
if compat.PY3:
798-
first_row = next(data)
799-
else:
800-
first_row = next(data)
797+
first_row = next(data)
801798
except StopIteration:
802799
return cls(index=index, columns=columns)
803800

0 commit comments

Comments
 (0)