I am running this tutorial with statsmodel
https://www.statsmodels.org/stable/examples/notebooks/generated/regression_plots.html
However, in this line,
prestige = sm.datasets.get_rdataset("Duncan", "car", cache=True).data
i got the error:
ValueError: Dataset Duncan was not found.
Any idea how to fix that? Thanks.
change your code to
prestige = sm.datasets.get_rdataset("Duncan", "carData", cache=True).data
Package name has been changed from "car" to "carData" in the Rdataset.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With