-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: add documentation for read_spss(#27476) #27594
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @cbrnr for additional input
doc/source/user_guide/io.rst
Outdated
SPSS files contain column names. By default the | ||
whole file is read and returned as a ``DataFrame`` with all columns. | ||
|
||
Specify a ``usecols`` to obtain a subset of columns. Specify ``apply_value_formats=True`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this called convert_categoricals
? Also I think worth mentioning this is the default so user would have to disable if they didn't want it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the good catch! Totally agree.
doc/source/user_guide/io.rst
Outdated
|
||
.. code-block:: python | ||
|
||
df = pd.read_sas('spss_data.zsav', usecols=usecols, apply_value_formats=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
read_spss
here right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep~
d863fa0
to
6b586d0
Compare
Thanks @yanglinlee - this is a great update (and glad you learned something new) |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Documentation is added for the new read_spss function.
After the generating html in Sphinx, it looks like this:
IO page top:



SPSS description:
API section: