
*Import in Python*


```python
import pandas as pd
data_url = "https://forge.scilab.org/index.php/p/rdataset/source/file/master/csv/datasets/cars.csv"
df_python = pd.read_csv(data_url)
df_python.drop(df_python.columns[[0]], axis=1, inplace=True)
```

*Summary in SAS*


```python
import saspy
session_sas = saspy.SASsession(cfgname='winlocal')
```

    SAS Connection established. Subprocess id is 6920
    
    


```python
session_sas
```




    Access Method         = IOM
    SAS Config name       = winlocal
    WORK Path             = /
    SAS Version           = 9.04.01M1P12042013
    SASPy Version         = 2.2.7
    Teach me SAS          = False
    Batch                 = False
    Results               = Pandas
    SAS Session Encoding  = WLATIN1
    Python Encoding value = windows-1252




```python
df_sas = session_sas.df2sd(df_python)
df_sas.describe()
```


    ---------------------------------------------------------------------------

    UnicodeDecodeError                        Traceback (most recent call last)

    <ipython-input-4-efc5eac237bd> in <module>()
          1 df_sas = session_sas.df2sd(df_python)
    ----> 2 df_sas.describe()
    

    f:\program files\python\python37-32\lib\site-packages\saspy\sasbase.py in describe(self)
       1508         :return:
       1509         """
    -> 1510         return self.means()
       1511 
       1512     def means(self):
    

    f:\program files\python\python37-32\lib\site-packages\saspy\sasbase.py in means(self)
       1527             code = "proc means data=%s.%s %s stackodsoutput n nmiss median mean std min p25 p50 p75 max; ods output Summary=work._summary; run;" % (
       1528                 self.libref, self.table, self._dsopts())
    -> 1529             return self._returnPD(code, '_summary')
       1530         else:
       1531             if self.HTML:
    

    f:\program files\python\python37-32\lib\site-packages\saspy\sasbase.py in _returnPD(self, code, tablename, **kwargs)
       1107         if 'libref' in kwargs:
       1108             libref = kwargs['libref']
    -> 1109         ll = self.sas._io.submit(code)
       1110         check, errorMsg = self._checkLogForError(ll['LOG'])
       1111         if not check:
    

    f:\program files\python\python37-32\lib\site-packages\saspy\sasioiom.py in submit(self, code, results, prompt)
        875              self.stdin[0].send(odsclose+logcodei.encode()+b'tom says EOL='+logcodeo+b'\n')
        876 
    --> 877       lstf = lstf.decode()
        878       logf = logf.decode()
        879 
    

    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 31798: invalid continuation byte

