Skip to content
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

Merged
merged 4 commits into from
Nov 20, 2019

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

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)
Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

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?

Copy link
Contributor

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.

@WillAyd WillAyd added the Deprecate Functionality to remove in pandas label Nov 20, 2019
@WillAyd WillAyd added this to the 1.0 milestone Nov 20, 2019
@WillAyd
Copy link
Member

WillAyd commented Nov 20, 2019

cc @bashtage

@bashtage
Copy link
Contributor

Lgtm.

@jreback
Copy link
Contributor

jreback commented Nov 20, 2019

lgtm. rebase and merge.

@WillAyd WillAyd merged commit 6d11aa8 into pandas-dev:master Nov 20, 2019
@WillAyd
Copy link
Member

WillAyd commented Nov 20, 2019

Thanks @jbrockmendel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants