pandas.
read_sas
Read SAS files stored as either XPORT or SAS7BDAT format files.
Any valid string path is acceptable. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: file://localhost/path/to/table.sas.
file://localhost/path/to/table.sas
If you want to pass in a path object, pandas accepts any os.PathLike.
os.PathLike
By file-like object, we refer to objects with a read() method, such as a file handler (e.g. via builtin open function) or StringIO.
read()
open
StringIO
If None, file format is inferred from file extension. If ‘xport’ or ‘sas7bdat’, uses the corresponding format.
Identifier of column that should be used as index of the DataFrame.
Encoding for text data. If None, text data are stored as raw bytes.
Read file chunksize lines at a time, returns iterator.
If True, returns an iterator for reading the file incrementally.