Skip to content

Revert deprecation of con as keyword only arg #54750

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

Merged
merged 6 commits into from
Aug 26, 2023
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Aug 25, 2023

@phofl phofl requested a review from mroeschke August 25, 2023 09:23
@phofl phofl added the Blocker Blocking issue or pull request for an upcoming release label Aug 25, 2023
@phofl phofl added this to the 2.1 milestone Aug 25, 2023
@phofl phofl closed this Aug 25, 2023
@phofl phofl reopened this Aug 25, 2023
)
df = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 1, "B": 2, "C": 3}])
df.to_sql("example", self.conn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
df.to_sql("example", self.conn)

Don't think this is needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d like to keep it to keep a test that this does not raise close by

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay. I think you'll need a if_exists="replace" below then.

@phofl phofl merged commit 39d7134 into pandas-dev:main Aug 26, 2023
@phofl phofl deleted the to_sql branch August 26, 2023 07:57
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 26, 2023
phofl added a commit that referenced this pull request Aug 26, 2023
…ord only arg) (#54766)

Backport PR #54750: Revert deprecation of con as keyword only arg

Co-authored-by: Patrick Hoefler <[email protected]>
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker Blocking issue or pull request for an upcoming release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow con as positional on to_sql
3 participants