-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
DEPR: remove encoding kwarg from read_stata, DataFrame.to_stata #29722
Conversation
encoded.to_stata( | ||
path, write_index=False, version=version, encoding="latin-1" | ||
) | ||
encoded.to_stata(path, write_index=False, version=version) | ||
reread_encoded = read_stata(path) | ||
tm.assert_frame_equal(encoded, reread_encoded) |
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.
not sure if this is still testing anything useful
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.
Yea can probably just remove this altogether since it seems directed towards encoding
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.
there's also a the version kwarg. @bashtage is this testing anything meaningful?
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.
It is testing correctness, but since encoding is a no-op already, I think isn't adding anything. This said, I think it still uses some characters that aren't tested anywhere else.
cc @bashtage |
Lgtm. |
lgtm. rebase and merge. |
Thanks @jbrockmendel |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff