Skip to content

ENH: Move database error to error/__init__.py per GH27656 #47674

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 3 commits into from
Jul 14, 2022

Conversation

dataxerik
Copy link
Contributor


Examples
--------
>>> import pandas.io.sql as sql
Copy link
Member

Choose a reason for hiding this comment

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

Can just call pd.read_sql below

Copy link
Member

Choose a reason for hiding this comment

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

I don't think it's necessary to demo sql.execute since it's not public

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. Maybe an obvious question, how do you know if something is public or not?

Copy link
Member

Choose a reason for hiding this comment

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

Good question (and definitely not obvious). Anything in the pandas namespace import pandas as pd or pandas/api is public. Users can access other namespaces but they are not "public" e.g. pandas.core

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gotcha, thank you for the information!

@mroeschke mroeschke added the Error Reporting Incorrect or improved errors from pandas label Jul 14, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jul 14, 2022
@mroeschke mroeschke merged commit 5690e8f into pandas-dev:main Jul 14, 2022
@mroeschke
Copy link
Member

Thanks @dataxerik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants