Skip to content

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