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

cant open a small dataframe #21719

Closed
surachitsarkar-kly opened this issue Jan 18, 2024 · 2 comments
Closed

cant open a small dataframe #21719

surachitsarkar-kly opened this issue Jan 18, 2024 · 2 comments

Comments

@surachitsarkar-kly
Copy link

cursor.execute(query1) rows = cursor.fetchall() column_names = [desc[0] for desc in cursor.description] #column_names[3]="payload" df = pd.DataFrame(rows, columns=column_names) col=df.columns
@jitseniesen
Copy link
Member

Hi @surachitsarkar-kly , I am afraid that we need more information before we can help you. That is why we provide a long template when you open a new issue. In particular, we need to know what happens when you open the dataframe. Do you get an error, and if so, what is it? We also need to know what version of Spyder you have and probably what version of Pandas. It would also really help to have a reproducible example, or at least to know what cursor in your code is and what the dataframe df looks like.

In absence of any further information, the only advice that I can give you is to upgrade Spyder. In particular Spyder version 5.4.2 and earlier have a problem with Pandas version 2, which leads to an error message mentioning iteritems. Upgrading Spyder solves that.

@jitseniesen
Copy link
Member

Closing due to lack of followup.

@jitseniesen jitseniesen closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2024
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