Skip to content

Commit

Permalink
Merge pull request spyder-ide#23233 from ccordoba12/fix-error-with-nu…
Browse files Browse the repository at this point in the history
…mpy-2.2

PR: Fix error when inserting items in DataFrameEditor (Variable Explorer)
  • Loading branch information
ccordoba12 authored Dec 9, 2024
2 parents a0e3261 + ce927ac commit e2e79e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/plugins/variableexplorer/widgets/dataframeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ def insert_item(self, axis=0, before_above=False):
new_name = self.next_index_name(indexes, new_name)

item_value = eval(eval_type)
if item_value == ():
if isinstance(item_value, tuple) and item_value == ():
item_value = ('')

df.insert(
Expand Down

0 comments on commit e2e79e5

Please sign in to comment.