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

More helpful Stata string length error. #23629

Merged
merged 1 commit into from
Nov 12, 2018
Merged

Conversation

jtkiley
Copy link
Contributor

@jtkiley jtkiley commented Nov 11, 2018

The current error string when trying to write a string longer than 244 characters does not point users toward a solution that already exists: using the version=117 parameter.
xref #23564

  • closes: no issue that I see
  • tests: not needed; error string change only
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry: too small a change?

The current error string when trying to write a string longer than 244 characters does not point users toward a solution that already exists: using the `version=117` parameter.
@pep8speaks
Copy link

Hello @jtkiley! Thanks for submitting the PR.

@bashtage
Copy link
Contributor

LGTM.

@jreback jreback added Error Reporting Incorrect or improved errors from pandas IO Stata read_stata, to_stata labels Nov 11, 2018
@jreback jreback added this to the 0.24.0 milestone Nov 11, 2018
@jreback
Copy link
Contributor

jreback commented Nov 11, 2018

lgtm. ping on green.

@codecov
Copy link

codecov bot commented Nov 12, 2018

Codecov Report

Merging #23629 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #23629      +/-   ##
==========================================
+ Coverage   92.23%   92.23%   +<.01%     
==========================================
  Files         161      161              
  Lines       51288    51322      +34     
==========================================
+ Hits        47304    47337      +33     
- Misses       3984     3985       +1
Flag Coverage Δ
#multiple 90.62% <ø> (ø) ⬆️
#single 42.3% <ø> (+0.03%) ⬆️
Impacted Files Coverage Δ
pandas/core/indexes/timedeltas.py 89.29% <0%> (-0.59%) ⬇️
pandas/core/tools/timedeltas.py 98.03% <0%> (-0.15%) ⬇️
pandas/core/indexes/datetimes.py 96.12% <0%> (-0.02%) ⬇️
pandas/core/arrays/datetimes.py 98.44% <0%> (-0.01%) ⬇️
pandas/core/arrays/timedeltas.py 95.08% <0%> (+1.29%) ⬆️

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 58a59bd...ed31a35. Read the comment docs.

@jtkiley
Copy link
Contributor Author

jtkiley commented Nov 12, 2018

@jreback All green. Thanks!

@jreback jreback merged commit eb19fe9 into pandas-dev:master Nov 12, 2018
@jreback
Copy link
Contributor

jreback commented Nov 12, 2018

thanks @jtkiley

@jtkiley jtkiley deleted the patch-1 branch November 12, 2018 13:26
thoo added a commit to thoo/pandas that referenced this pull request Nov 12, 2018
* upstream/master:
  BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527)
  DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635)
  More helpful Stata string length error. (pandas-dev#23629)
  BUG: astype fill_value for SparseArray.astype (pandas-dev#23547)
  CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587)
  CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627)
  CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249)
  DOC: Enhancing pivot / reshape docs (pandas-dev#21038)
  TST: Fix xfailing DataFrame arithmetic tests by transposing (pandas-dev#23620)
thoo added a commit to thoo/pandas that referenced this pull request Nov 12, 2018
…fixed

* upstream/master:
  DOC: avoid SparseArray.take error (pandas-dev#23637)
  CLN: remove incorrect usages of com.AbstractMethodError (pandas-dev#23625)
  DOC: Adding validation of the section order in docstrings (pandas-dev#23607)
  BUG: Don't over-optimize memory with jagged CSV (pandas-dev#23527)
  DEPR: Deprecate usecols as int in read_excel (pandas-dev#23635)
  More helpful Stata string length error. (pandas-dev#23629)
  BUG: astype fill_value for SparseArray.astype (pandas-dev#23547)
  CLN: datetimelike arrays: isort, small reorg (pandas-dev#23587)
  CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627)
  CLN:Remove unused **kwargs from user facing methods (pandas-dev#23249)
JustinZhengBC pushed a commit to JustinZhengBC/pandas that referenced this pull request Nov 14, 2018
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas IO Stata read_stata, to_stata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants