From 4c826c8b7103f3c2ad5b8ecdbff1ec4f85b8935e Mon Sep 17 00:00:00 2001 From: Nick Burns Date: Thu, 16 Apr 2015 11:36:36 -0700 Subject: [PATCH] removed conditional --- pandas/core/frame.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 19f15f58afffd..80edfa2af024e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -794,10 +794,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None, return cls() try: - if compat.PY3: - first_row = next(data) - else: - first_row = next(data) + first_row = next(data) except StopIteration: return cls(index=index, columns=columns)