Skip to content

DEPR: deprecate StataReader, StataWriter, genfromdta - #5770

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
jbrockmendel:stata2
May 22, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
jbrockmendel:stata2

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

@pep8speaks

pep8speaks commented May 21, 2019 •

Copy link
Copy Markdown

Hello @jbrockmendel! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-05-22 14:12:21 UTC

@codecov

codecov Bot commented May 21, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5770 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5770      +/-   ##
=========================================
+ Coverage    82.3%   82.3%   +<.01%     
=========================================
  Files         593     593              
  Lines       93648   93667      +19     
  Branches    10339   10339              
=========================================
+ Hits        77074   77093      +19     
  Misses      14181   14181              
  Partials     2393    2393
Impacted Files Coverage Δ
statsmodels/iolib/foreign.py 73.4% <100%> (+0.21%) ⬆️
statsmodels/iolib/tests/test_foreign.py 98.61% <100%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 180acc6...43c7324. Read the comment docs.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 84.826% when pulling 868236f on jbrockmendel:stata2 into c8cf0c9 on statsmodels:master.

@coveralls

coveralls commented May 21, 2019 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.005%) to 84.819% when pulling 43c7324 on jbrockmendel:stata2 into 180acc6 on statsmodels:master.

@bashtage

Copy link
Copy Markdown
Member

@josef-pkt Any objections to starting this path?

Comment thread statsmodels/iolib/foreign.py Outdated
def __init__(self, fname, missing_values=False, encoding=None):
warnings.warn(
"StataReader is deprecated as of 0.10.0 and will be removed in a "
"future version. Use pandas.read_stata instead.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally something mentions both read_stata and StataReader, e.g., use pandas.read_state or pandas.io.stata.StataReader

Comment thread statsmodels/iolib/foreign.py Outdated
byteorder=None):
warnings.warn(
"StataWriter is deprecated as of 0.10.0 and will be removed in a "
"future version. Use pandas.DataFrame(data).to_stata instead.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment: use pandas.DataFrame.to_stata or pandas.io.stata.StataWriter

Also, I think it should be pandas.DataFrame.to_stata, which is the correct function reference.

Comment thread statsmodels/iolib/foreign.py Resolved
@bashtage

Copy link
Copy Markdown
Member

Random Fail.

@bashtage
bashtage merged commit 3949ce8 into statsmodels:master May 22, 2019
@jbrockmendel
jbrockmendel deleted the stata2 branch May 22, 2019 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IO: StataWriter and np.inf

4 participants