statsmodels: get_rdataset is broken

Seems that get_rdataset() function is broken

>>> import statsmodels

>>> statsmodels.__version__
 '0.8.0'

>>> duncan = statsmodels.datasets.get_rdataset("Duncan", "car")
...

ValueError: Dataset Duncan was not found.

Other rdatasets raise the same not found error.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (12 by maintainers)

Most upvoted comments

I’m new to statsmodels and started by reading https://www.statsmodels.org/stable/gettingstarted.html# Frustrated to find that the very first example doesn’t work at the line In [4]: df = sm.datasets.get_rdataset(“Guerry”, “HistData”).data Since this issue breaks the tutorial part of the online documentation, I think that it deserves a higher priority. It’s gone unfixed for a year now.

@vincentarelbundock Works for me now! Thanks!

I will try to fix this upstream soon. Sorry for the trouble.