Closed rashed120 closed 2 years ago
If you do this:
import xport.v56
with open('example.xpt', 'rb') as f:
library = xport.v56.load(f)
help(library)
Do you get something that explains it?
Sorry, I should have waited until I had a chance to write more. So, the load
function parses a SAS dataset library, which can have many members. Each has a name, so the library is kind-of a dictionary of members. If you look at the library's keys, you'll see the member names. Pick out a member and it's a subclass of a Pandas DataFrame, the column names matching the SAS names.
Hi,
If i open xpt file in notepad, i can see column name there. Could you please guide me how can i extract column name form xpt file using xport?