How to get Text from b'Text' in the pandas object type after using read_sas?

前端 未结 3 582
死守一世寂寞
死守一世寂寞 2021-02-04 08:21

I\'m trying to read the data from .sas7bdat format of SAS using pandas function read_sas:

import pandas as pd
df = pd.read_sas(\'D:/input/houses.sas7bdat\', form         


        
3条回答
  •  半阙折子戏
    2021-02-04 08:54

    add this encoding="utf-8"

    so the line would be as follows:

    df = pd.read_sas('D:/input/houses.sas7bdat', format = 'sas7bdat', encoding="utf-8")
    

提交回复
热议问题