How can i open dta file with correct encoding in python?

68 Views Asked by At

While opening dta file like this:

df = pd.read_stata('selfemp.dta')

print(data)

I get almost all columns with Nan

In this code I cannot add any encoding, as the TypeError arises

I need to open this file with right encoding to see all the columns correctly

0

There are 0 best solutions below