Python Forum
Unable to import data from Stata-press website
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to import data from Stata-press website
#1
Dear All,

I am new to python. I am trying to replicate code in https://www.statsmodels.org/dev/examples...ession.htm.

Basically, I run this code:
dta = pd.read_stata('https://www.stata-press.com/data/r14/rgnp.dta').iloc[1:]
But I receive the following error:
"OptionError: "No such keys(s): 'compute.use_numexpr'"

I think it is because the datasets are in a new format compliant with STATA 16. The reason I believe it is because the code works fine with other older datasets. only stata-press website returns an error. Thank you in advance.

Best,
Sam
Reply
#2
post full traceback in error tags and probably full code that produce the error (minimal reproducible example)

also this code https://www.statsmodels.org/dev/examples...ession.htm does not work
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  import columns of data from local csv file CatherineKan 2 3,303 May-10-2021, 05:10 AM
Last Post: ricslato
  Unable to import statsmodel Salahaddin 1 3,841 Jul-13-2020, 03:00 AM
Last Post: HarleyQuin
  Trying to import JSON data into Python/Pandas DataFrame then edit then write CSV Rhubear 0 4,076 Jul-23-2018, 09:50 PM
Last Post: Rhubear
  import/use data from text files MichealPeterson 1 3,289 Jun-28-2017, 08:51 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020