The Python statsmodels library grants access to many R-datasets which can be downloaded e.g. with:
import statsmodels.api as sm df = sm.datasets.get_rdataset(dataname='iris', package='datasets').data
But for this you have to know the id or the name of the dataset.
sm.datasets.get_rdataset?? Signature: sm.datasets.get_rdataset(dataname, package='datasets', cache=False) Source: def get_rdataset(dataname, package="datasets", cache=False): """download and return R dataset Parameters ---------- dataname : str The name of the dataset you want to download
Is there an overview of all the available datasets that contains the ids e.g. "iris"?
There is an index that is supposed to list all the datasets, but e.g. 'rice' as a name does not work.