-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
ENH: Move database error to error/__init__.py per GH27656 #47674
Conversation
dataxerik
commented
Jul 11, 2022
- xref API: many custom errors / warnings are not exposed in pandas.errors #27656. this GitHub issue is being done in multiple parts
- Tests added and passed if fixing a bug or adding a new feature
- All code checks passed.
pandas/errors/__init__.py
Outdated
|
||
Examples | ||
-------- | ||
>>> import pandas.io.sql as sql |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
Thanks @dataxerik |