Are there any example data sets for Python?

前端 未结 6 2206
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 10:00

For quick testing, debugging, creating portable examples, and benchmarking, R has available to it a large number of data sets (in the Base R datasets package).

6条回答
  •  轮回少年
    2020-12-23 10:52

    Following Joran's comment, I've since found the statsmodels module, which provides its own datasets package. The online documentation shows an example of how to import datasets available in R:

    import statsmodels.api as sm
    duncan_prestige = sm.datasets.get_rdataset("Duncan", "car")
    print duncan_prestige.__doc__
    

提交回复
热议问题