Skip to content

Commit

Permalink
Merge from 2.3: Improve fix for issue #2491
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 23, 2015
2 parents 6812e6d + 1e0a2ba commit 26c5565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyderlib/widgets/dataframeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ def get_bgcolor(self, index):
def get_value(self, row, column):
"""Returns the value of the DataFrame"""
# To increase the performance iat is used but that requires error
# handeling when index contains nan, so fallback uses iloc
# handling, so fallback uses iloc
try:
value = self.df.iat[row, column]
except (KeyError, TypeError):
except:
value = self.df.iloc[row, column]
return value

Expand Down

0 comments on commit 26c5565

Please sign in to comment.