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

Persist pandas data frame without index #205

Open
bhishanpdl opened this issue Jan 15, 2022 · 1 comment
Open

Persist pandas data frame without index #205

bhishanpdl opened this issue Jan 15, 2022 · 1 comment

Comments

@bhishanpdl
Copy link

Can we persist a pandas data frame to the database without index?

import pandas as pd

mytable = pd.DataFrame({'col0': [10,20,30], 'col1': ['a','b','c']

%sql --persist mytable

This includes the index column by default, is there a way to exclude index such as %sql --persist mytable --no-index?

@idomic
Copy link

idomic commented Dec 23, 2022

@bhishanpdl not sure if this issue is still relevant, but we've implemented a fix and released it.
Jupysql is a fork that we're trying to maintain to keep the support/bug fixes/feature requests going for the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants