官术网_书友最值得收藏!

Introduction to the datadotworld Python package

To install the datadotworld Python package, follow these steps:

  1. First, we have to install the package. To do so, we could try one of the following lines:
conda install datadotworld 
pip install datadotworld 
  1. After the package is successfully installed, we can use the dir() function to list all its functions, as shown in this screenshot:
  1. A user has to get an APK token at https://data.world/settings/advaned in order to run a Python program. Without such a token, we might get the following error message if we run a datadotworld function:
  1. According to the error message, we must run the following configure command:
  1. Now we can use the Python package as shown in the following Python program:
import datadotworld as dw 
name='jonloyens/an-intro-to-dataworld-dataset' 
results = dw.query(name, 
    'SELECT * FROM `DataDotWorldBBallStats`, `DataDotWorldBBallTeam` ' 
    'WHERE DataDotWorldBBallTeam.Name = DataDotWorldBBallStats.Name') 
df = results.dataframe 
print(df) 
  1. The related output is shown here:
主站蜘蛛池模板: 静安区| 惠州市| 大城县| 福泉市| 麦盖提县| 柳河县| 额尔古纳市| 遂昌县| 青阳县| 铜陵市| 皋兰县| 富民县| 溆浦县| 桦南县| 青铜峡市| 伽师县| 榕江县| 漠河县| 章丘市| 赞皇县| 巫溪县| 扎兰屯市| 屏山县| 沧州市| 蓬安县| 吉首市| 台江县| 子洲县| 河间市| 睢宁县| 高唐县| 盐源县| 靖远县| 内黄县| 古蔺县| 小金县| 达拉特旗| 屏南县| 锡林浩特市| 那坡县| 若尔盖县|