-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
BUG: Stata value label limits incorrect #60107
Labels
Bug
IO Stata
read_stata, to_stata
Needs Triage
Issue that has not been reviewed by a pandas team member
Comments
jmcoglianese
added
Bug
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Oct 25, 2024
Cc @bashtage |
From the stata documentation:
The docs make it sound like 32,000 is the limit for <= 118, and only 119 can do more. What format are you outputting to in Stata? |
Rereading the docs it does seem like the check might be implemented incorrectly, and it should be 32,000 variables, not 32,000 observations. |
bashtage
added a commit
to bashtage/pandas
that referenced
this issue
Oct 31, 2024
Remove 32,000 limit on value limit check since this applies to the number of variable, not the length of the value labels closes pandas-dev#60107
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
IO Stata
read_stata, to_stata
Needs Triage
Issue that has not been reviewed by a pandas team member
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Here's an example in Stata that constructs the same value label (65,534 entries with 21 characters each) but does not produce an error:
INSTALLED VERSIONS
commit : d9cdd2e
python : 3.12.0.final.0
python-bits : 64
OS : Darwin
OS-release : 21.6.0
Version : Darwin Kernel Version 21.6.0: Wed Apr 24 06:02:02 PDT 2024; root:xnu-8020.240.18.708.4~1/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 2.2.2
numpy : 1.26.4
pytz : 2024.1
dateutil : 2.9.0.post0
setuptools : 75.1.0
pip : 24.2
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 5.2.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 8.26.0
pandas_datareader : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.12.3
bottleneck : 1.3.7
dataframe-api-compat : None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : None
numba : None
numexpr : 2.8.7
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
python-calamine : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : 2.0.32
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: