Skip to content

Commit

Permalink
Variable Explorer: Avoid a crash when displaying DataFrames with dupl…
Browse files Browse the repository at this point in the history
…icate column names

Fixes #2491
  • Loading branch information
ccordoba12 committed Jul 26, 2015
1 parent c709b62 commit bdfdea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyderlib/widgets/dataframeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_value(self, row, column):
# handeling when index contains nan, so fallback uses iloc
try:
value = self.df.iat[row, column]
except KeyError:
except (KeyError, TypeError):
value = self.df.iloc[row, column]
return value

Expand Down

0 comments on commit bdfdea8

Please sign in to comment.