Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spyder crashes when displaying DataFrames with duplicate column names in the Variable Explorer #2491

Closed
muellerth opened this issue Jun 17, 2015 · 1 comment

Comments

@muellerth
Copy link

Hi,
I have the problem that Spyder crashes when I try do display a Pandas DataFrame in the Spyder variable explorer. The problem only occurs, if there are duplicate columns in the DataFrame. Example:

2015-06-17 15_50_05-spyder python 2 7

Now, double clicking on the variable "new_df" in the variable explorer leads to a crash of Spyder.

My software versions are:

Sypder 2.3.4
Pandas 0.16.2
Iphyton 3.1.0

Best regards

@muellerth muellerth changed the title Spyder crashes by displaying Pandas DataFrames with duplicate columns Spyder crashes by displaying Pandas DataFrames with duplicate columns in the variable explorer Jun 17, 2015
@ccordoba12 ccordoba12 added this to the v3.0 milestone Jun 17, 2015
@ccordoba12 ccordoba12 self-assigned this Jun 17, 2015
@ccordoba12 ccordoba12 changed the title Spyder crashes by displaying Pandas DataFrames with duplicate columns in the variable explorer Spyder crashes when displaying DataFrames with duplicate column names Jul 26, 2015
@ccordoba12
Copy link
Member

A simpler example to test

import pandas as pd
df = pd.DataFrame([[1,2],[3,4],[5,6]], columns=['a','a'])

@ccordoba12 ccordoba12 changed the title Spyder crashes when displaying DataFrames with duplicate column names Spyder crashes when displaying DataFrames with duplicate column names in the Variable Explorer Jul 26, 2015
@ccordoba12 ccordoba12 modified the milestones: v2.3.6, v3.0 Aug 22, 2015
ccordoba12 added a commit that referenced this issue Aug 23, 2015
- Use iloc to get DataFrame values under *all* possible errors
- This avoids Spyder to crash if different errors than the ones
previously considered are generated by iat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants