Repository navigation
DEPR: deprecate StataReader, StataWriter, genfromdta - #5770
Conversation
|
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 Report
@@ 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
Continue to review full report at Codecov.
|
|
@josef-pkt Any objections to starting this path? |
| 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.", |
There was a problem hiding this comment.
Ideally something mentions both read_stata and StataReader, e.g., use pandas.read_state or pandas.io.stata.StataReader
| 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.", |
There was a problem hiding this comment.
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.
|
Random Fail. |
NumPy's guide.