-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC:Cleaned up docstrings in sql.py #17967
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
Conversation
pandas/io/sql.py
Outdated
@@ -44,7 +44,7 @@ class DatabaseError(IOError): | |||
def _validate_flavor_parameter(flavor): | |||
""" | |||
Checks whether a database 'flavor' was specified. | |||
If not None, produces FutureWarning if 'sqlite' and | |||
If not None, produces FutureWarning if 'SQLite' and |
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 think the previous version with lowercase 'sqlite' is correct, because this is referencing the flavor
parameter that's being checked, and it's looking for all lowercase (see line 51).
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.
You are definitely correct. SQLite is the proper capitalization for the library when used as a noun in regular language, but it looks like it needs to be lower case when being implemented. Thanks for spotting that.
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.
Should be good now I believe.
needs a rebase |
@scotthavard92 Thanks! (fixed the conflict on merge) |
Tidied up docstrings in pandas/io/sql.py.