@@ -5491,30 +5491,29 @@ The top-level function :func:`read_spss` can read (but not write) SPSS
5491
5491
`sav ` (.sav) and `zsav ` (.zsav) format files.
5492
5492
5493
5493
SPSS files contain column names. By default the
5494
- whole file is read, categorical columns are converted into ``pd.Categorical ``
5494
+ whole file is read, categorical columns are converted into ``pd.Categorical ``,
5495
5495
and a ``DataFrame `` with all columns is returned.
5496
5496
5497
- Specify a ``usecols `` to obtain a subset of columns. Specify ``convert_categoricals=False ``
5497
+ Specify the ``usecols `` parameter to obtain a subset of columns. Specify ``convert_categoricals=False ``
5498
5498
to avoid converting categorical columns into ``pd.Categorical ``.
5499
5499
5500
- Read a spss file:
5500
+ Read an SPSS file:
5501
5501
5502
5502
.. code-block :: python
5503
5503
5504
- df = pd.read_spss(' spss_data.zsav ' )
5504
+ df = pd.read_spss(' spss_data.sav ' )
5505
5505
5506
- Extract a subset of columns ``usecols `` from SPSS file and
5506
+ Extract a subset of columns contained in ``usecols `` from an SPSS file and
5507
5507
avoid converting categorical columns into ``pd.Categorical ``:
5508
5508
5509
5509
.. code-block :: python
5510
5510
5511
- df = pd.read_spss(' spss_data.zsav ' , usecols = [' foo' , ' bar' ],
5511
+ df = pd.read_spss(' spss_data.sav ' , usecols = [' foo' , ' bar' ],
5512
5512
convert_categoricals = False )
5513
5513
5514
- More info _ about the sav and zsav file format is available from the IBM
5515
- web site.
5514
+ More information about the `sav ` and `zsav ` file format is available here _.
5516
5515
5517
- .. _ info : https://www.ibm.com/support/knowledgecenter/en/SSLVMB_22.0.0/com.ibm.spss.statistics.help/spss/base/savedatatypes.htm
5516
+ .. _ here : https://www.ibm.com/support/knowledgecenter/en/SSLVMB_22.0.0/com.ibm.spss.statistics.help/spss/base/savedatatypes.htm
5518
5517
5519
5518
.. _io.other :
5520
5519
0 commit comments